fix printf windows warning

This commit is contained in:
Joachim Schoeberl 2023-08-05 10:09:14 +02:00
parent f0a73a3a4c
commit d2870b3e36

View File

@ -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];