Use correct format (%zu) for printing size_t values.

Fix assert due to using %d for printing 64 bit size_t values under Win64.

See #16974.

(this is a backport of 6c7c8b6d8d from master)
This commit is contained in:
Vadim Zeitlin
2016-01-14 15:41:44 +01:00
parent e39322c374
commit 4e5e788bae

View File

@@ -102,8 +102,8 @@ public:
} }
wxLogTrace("items container", wxLogTrace("items container",
"determined best size from %d top, %d bottom " "determined best size from %zu top, %zu bottom "
"plus %d more visible items out of %d total", "plus %zu more visible items out of %zu total",
top_part_end, top_part_end,
count - bottom_part_start, count - bottom_part_start,
wxMax(0, last_visible - first_visible), wxMax(0, last_visible - first_visible),