From 5952498e9e747dc8d7dc1a62866abbace2698cab Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 5 Jan 2016 16:53:51 +0100 Subject: [PATCH] Explicitely cast a size_t to int --- apps/openmw/mwgui/dialogue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/dialogue.cpp b/apps/openmw/mwgui/dialogue.cpp index d32588631..040cd6d65 100644 --- a/apps/openmw/mwgui/dialogue.cpp +++ b/apps/openmw/mwgui/dialogue.cpp @@ -547,7 +547,7 @@ namespace MWGui void DialogueWindow::onScrollbarMoved(MyGUI::ScrollBar *sender, size_t pos) { - mHistory->setPosition(0, pos * -1); + mHistory->setPosition(0, static_cast(pos) * -1); } void DialogueWindow::addResponse(const std::string &text, const std::string &title)