From 2e71e14dc41f64facd251988da5915bdf2ef0ee3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Dec 2019 18:43:15 +0100 Subject: [PATCH] Fix format specifier in an error message in dataview sample Use "%zu" for a size_t value to avoid assert failures under LP64 (i.e. all 64-bit Unix) systems. --- samples/dataview/mymodels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/dataview/mymodels.cpp b/samples/dataview/mymodels.cpp index e00ba68099..e6ee751299 100644 --- a/samples/dataview/mymodels.cpp +++ b/samples/dataview/mymodels.cpp @@ -591,7 +591,7 @@ bool MyListModel::SetValueByRow( const wxVariant &variant, { // the item is not in the range of the items // which we store... for simplicity, don't allow editing it - wxLogError( "Cannot edit rows with an index greater than %d", + wxLogError( "Cannot edit rows with an index greater than %zu", m_textColValues.GetCount() ); return false; }