1
0
Fork 0

(svn r27934) -Fix (r27900): Warning about unsigned unary minus.

release/1.8
michi_cc 2017-12-09 19:21:41 +00:00
parent f2a22573d5
commit e856e3cca8
1 changed files with 1 additions and 1 deletions

View File

@ -1682,7 +1682,7 @@ static Point GetAutoPlacePosition(int width, int height)
* of the closebox
*/
int left = rtl ? _screen.width - width : 0, top = toolbar_y;
int offset_x = rtl ? -NWidgetLeaf::closebox_dimension.width : NWidgetLeaf::closebox_dimension.width;
int offset_x = rtl ? -(int)NWidgetLeaf::closebox_dimension.width : (int)NWidgetLeaf::closebox_dimension.width;
int offset_y = max<int>(NWidgetLeaf::closebox_dimension.height, FONT_HEIGHT_NORMAL + WD_CAPTIONTEXT_TOP + WD_CAPTIONTEXT_BOTTOM);
restart: