From e5c884512b107f52374517835e2bc4e8ba44bffa Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Tue, 9 Jul 2019 18:07:46 +0300 Subject: [PATCH] Fixed compiler warning --- src/misc_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 9a055c2de2..6403e08681 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -698,7 +698,7 @@ struct TooltipsWindow : public Window if (_settings_client.gui.windows_titlebars) { // Move it to the top of the screen, away from mouse cursor, so it won't steal screen taps on Android pt.y = GetMainViewTop(); - if (_cursor.pos.y < pt.y + GetMinSizing(NWST_STEP)) { + if (_cursor.pos.y < pt.y + (int)GetMinSizing(NWST_STEP)) { pt.x = _cursor.pos.x > _screen.width / 2 ? GetMinSizing(NWST_STEP) : _screen.width - sm_width - GetMinSizing(NWST_STEP); } }