]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/undo.cpp
Remove most of the compiler warning in radiant
[xonotic/netradiant.git] / radiant / undo.cpp
index 9910fb98a1b68ac2bc7495b8af64eb0a492058a8..c12811b9b74426119b4bdaaaa8116d0adacdecd5 100644 (file)
@@ -254,7 +254,7 @@ void release( Undoable* undoable ){
        m_undoables.erase( undoable );
 }
 void setLevels( std::size_t levels ){
-       if ( levels > MAX_UNDO_LEVELS() ) {
+       if ( levels > std::size_t(MAX_UNDO_LEVELS()) ) {
                levels = MAX_UNDO_LEVELS();
        }