mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
fix printf windows warning
This commit is contained in:
parent
f0a73a3a4c
commit
d2870b3e36
@ -155,7 +155,7 @@ MyStr::MyStr(long l)
|
||||
MyStr::MyStr(size_t l)
|
||||
{
|
||||
char buffer[32];
|
||||
snprintf(buffer, 32, "%ld", l);
|
||||
snprintf(buffer, 32, "%zu", l);
|
||||
length = unsigned(strlen(buffer));
|
||||
if (length > SHORTLEN)
|
||||
str = new char[length + 1];
|
||||
|
Loading…
Reference in New Issue
Block a user