]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/mapq3/plugin.cpp
Remove most of the compiler warning in radiant
[xonotic/netradiant.git] / plugins / mapq3 / plugin.cpp
index 2c3d99c519b550838dbd503a563a9fde75aa3c9e..e21cf22d94b32562d1ad83179313c7b637451686 100644 (file)
@@ -110,7 +110,7 @@ void readGraph( scene::Node& root, TextInputStream& inputStream, EntityCreator&
        if ( !Tokeniser_getSize( tokeniser, version ) ) {
                return;
        }
-       if ( version != MapVersion() ) {
+       if ( version != std::size_t(MapVersion()) ) {
                globalErrorStream() << "Doom 3 map version " << MapVersion() << " supported, version is " << Unsigned( version ) << "\n";
                return;
        }
@@ -181,7 +181,7 @@ void readGraph( scene::Node& root, TextInputStream& inputStream, EntityCreator&
        if ( !Tokeniser_getSize( tokeniser, version ) ) {
                return;
        }
-       if ( version != MapVersion() ) {
+       if ( version != std::size_t(MapVersion()) ) {
                globalErrorStream() << "Quake 4 map version " << MapVersion() << " supported, version is " << Unsigned( version ) << "\n";
                return;
        }