]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed printf-related warnings
authorJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 15 Jun 2009 23:27:04 +0000 (23:27 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 15 Jun 2009 23:27:04 +0000 (23:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/variant.cpp

index 3f9c2cca696b492257b153f34a2e98dd1a690ae0..12a9ded6d2bc1100fdf3980fdd66d218a1c2e0cb 100644 (file)
@@ -1475,8 +1475,12 @@ bool wxVariantDataLongLong::Write(wxSTD ostream& str) const
 
 bool wxVariantDataLongLong::Write(wxString& str) const
 {
-    str.Printf(wxS("%lld"), m_value);
+#ifdef wxLongLong_t
+    str.Printf(wxS("%lld"), m_value.GetValue());
     return true;
+#else
+    return false;
+#endif
 }
 
 #if wxUSE_STD_IOSTREAM
@@ -1632,8 +1636,12 @@ bool wxVariantDataULongLong::Write(wxSTD ostream& str) const
 
 bool wxVariantDataULongLong::Write(wxString& str) const
 {
-    str.Printf(wxS("%llu"), m_value);
+#ifdef wxLongLong_t
+    str.Printf(wxS("%llu"), m_value.GetValue());
     return true;
+#else
+    return false;
+#endif
 }
 
 #if wxUSE_STD_IOSTREAM