diff --git a/src/Gui/SpinBox.cpp b/src/Gui/SpinBox.cpp index 7ccfdccdd1..ca0bae7f60 100644 --- a/src/Gui/SpinBox.cpp +++ b/src/Gui/SpinBox.cpp @@ -319,7 +319,7 @@ public: in = int_limits::max(); } else if ( v == 0 ) { in = int_limits::min(); - } else if ( v > int_limits::max() ) { + } else if ( v > static_cast(int_limits::max()) ) { v += int_limits::min(); in = static_cast(v); } else {