Fix warning

The call to sprintf was causing a warning in vs2015 because of wrong type.
pull/953/head
TrianglesPCT 2016-07-24 02:33:33 -06:00 committed by GitHub
parent 28c9f56c5e
commit e888e72599
1 changed files with 1 additions and 1 deletions

View File

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