ソースを参照

Fix warning

The call to sprintf was causing a warning in vs2015 because of wrong type.
TrianglesPCT 9 年 前
コミット
e888e72599
1 ファイル変更1 行追加1 行削除
  1. 1 1
      contrib/openddlparser/code/OpenDDLExport.cpp

+ 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 += "]";
     }