projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28c9f56
)
Fix warning
author
TrianglesPCT
<dain.bray@gmail.com>
Sun, 24 Jul 2016 08:33:33 +0000
(
02:33
-0600)
committer
GitHub
<noreply@github.com>
Sun, 24 Jul 2016 08:33:33 +0000
(
02:33
-0600)
The call to sprintf was causing a warning in vs2015 because of wrong type.
contrib/openddlparser/code/OpenDDLExport.cpp
patch
|
blob
|
history
diff --git
a/contrib/openddlparser/code/OpenDDLExport.cpp
b/contrib/openddlparser/code/OpenDDLExport.cpp
index
6f1c344
..
49207c0
100644
(file)
--- 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 += "]";
}