From 6c7c8b6d8db100d5640a05d2bd8f747edb1fe4e9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Apr 2015 19:38:02 +0200 Subject: [PATCH] Use correct format (%zu) for printing size_t values. Fix assert due to using %d for printing 64 bit size_t values under Win64. Closes #16974. --- include/wx/generic/private/widthcalc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/generic/private/widthcalc.h b/include/wx/generic/private/widthcalc.h index 41213371ed..d9549e7d70 100644 --- a/include/wx/generic/private/widthcalc.h +++ b/include/wx/generic/private/widthcalc.h @@ -102,8 +102,8 @@ public: } wxLogTrace("items container", - "determined best size from %d top, %d bottom " - "plus %d more visible items out of %d total", + "determined best size from %zu top, %zu bottom " + "plus %zu more visible items out of %zu total", top_part_end, count - bottom_part_start, wxMax(0, last_visible - first_visible),