浏览代码

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