mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +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)
|
MyStr::MyStr(size_t l)
|
||||||
{
|
{
|
||||||
char buffer[32];
|
char buffer[32];
|
||||||
snprintf(buffer, 32, "%ld", l);
|
snprintf(buffer, 32, "%zu", l);
|
||||||
length = unsigned(strlen(buffer));
|
length = unsigned(strlen(buffer));
|
||||||
if (length > SHORTLEN)
|
if (length > SHORTLEN)
|
||||||
str = new char[length + 1];
|
str = new char[length + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user