1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Fix warnings introduced by 9b8fa99fe3

This commit is contained in:
Loic Blot 2017-10-10 19:30:18 +02:00
parent 32ae492657
commit 1ff5c20442
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
2 changed files with 6 additions and 6 deletions

View file

@ -1517,7 +1517,7 @@ void intlGUIEditBox::updateVScrollBar()
}
// check if a vertical scrollbar is needed ?
if (getTextDimension().Height > FrameRect.getHeight()) {
if (getTextDimension().Height > (u32) FrameRect.getHeight()) {
s32 scrollymax = getTextDimension().Height - FrameRect.getHeight();
if (scrollymax != m_vscrollbar->getMax()) {
m_vscrollbar->setMax(scrollymax);