]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix format specifiers used for "unsigned long" in wxPG code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Sep 2011 11:06:15 +0000 (11:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Sep 2011 11:06:15 +0000 (11:06 +0000)
"unsigned long" quantities must be formatted using "%l[xou]" and not just
"%[xou]" as the latter doesn't work correctly on 64 bit platforms.

Closes #13447.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/props.cpp

index c9a5a6c73edb7ad286d704af58ef5221e35fed73..8698b7272813f0108fa252073332ed04d280682c 100644 (file)
@@ -474,9 +474,9 @@ wxValidator* wxIntProperty::DoGetValidator() const
 #define wxPG_UINT_TEMPLATE_MAX 8
 
 static const wxChar* const gs_uintTemplates32[wxPG_UINT_TEMPLATE_MAX] = {
-    wxT("%x"),wxT("0x%x"),wxT("$%x"),
-    wxT("%X"),wxT("0x%X"),wxT("$%X"),
-    wxT("%u"),wxT("%o")
+    wxT("%lx"),wxT("0x%lx"),wxT("$%lx"),
+    wxT("%lX"),wxT("0x%lX"),wxT("$%lX"),
+    wxT("%lu"),wxT("%lo")
 };
 
 static const char* const gs_uintTemplates64[wxPG_UINT_TEMPLATE_MAX] = {