From e888e725999b847ab9f37e0298c468bfa9bab65a Mon Sep 17 00:00:00 2001 From: TrianglesPCT Date: Sun, 24 Jul 2016 02:33:33 -0600 Subject: [PATCH] Fix warning The call to sprintf was causing a warning in vs2015 because of wrong type. --- contrib/openddlparser/code/OpenDDLExport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/openddlparser/code/OpenDDLExport.cpp b/contrib/openddlparser/code/OpenDDLExport.cpp index 6f1c3449a..49207c044 100644 --- a/contrib/openddlparser/code/OpenDDLExport.cpp +++ b/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 += "]"; }