2
0
Эх сурвалжийг харах

Fix warning

The call to sprintf was causing a warning in vs2015 because of wrong type.
TrianglesPCT 9 жил өмнө
parent
commit
e888e72599

+ 1 - 1
contrib/openddlparser/code/OpenDDLExport.cpp

@@ -280,7 +280,7 @@ bool OpenDDLExport::writeValueType( Value::ValueType type, size_t numItems, std:
         statement += "[";
         char buffer[ 256 ];
         ::memset( buffer, '\0', 256 * sizeof( char ) );
-        sprintf( buffer, "%d", numItems );
+        sprintf( buffer, "%d", int(numItems) );
         statement += buffer;
         statement += "]";
     }