From 351103cc45afe2d10b82277f66f3f20276f7ea4b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Nov 2015 00:27:09 +0100 Subject: [PATCH] Use proper format specifier for size_t value in ipc sample "%d" can't be used for size_t which may be of greater size than int, so use "%lu" with a cast to unsigned long, as is done elsewhere because "%z" is unfortunately not portable. Closes #17255. --- samples/ipc/connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ipc/connection.h b/samples/ipc/connection.h index 18152416d4..81ff6e7b12 100644 --- a/samples/ipc/connection.h +++ b/samples/ipc/connection.h @@ -69,7 +69,7 @@ protected: break; } - wxLogMessage("%s,%d)", s, size); + wxLogMessage("%s,%lu)", s, (unsigned long)size); } };