From d2870b3e366dfdf2384775a2ad39382c56d12f75 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sat, 5 Aug 2023 10:09:14 +0200 Subject: [PATCH] fix printf windows warning --- libsrc/general/mystring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];