diff --git a/libsrc/general/mystring.cpp b/libsrc/general/mystring.cpp index 7d7dcd01..cd2ed300 100644 --- a/libsrc/general/mystring.cpp +++ b/libsrc/general/mystring.cpp @@ -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];