From f81bd28859d95c2a8f8b6ec71885f8770b5e5e1a Mon Sep 17 00:00:00 2001 From: Jaakko Salli <jaakko.salli@dnainternet.net> Date: Mon, 15 Jun 2009 23:27:04 +0000 Subject: [PATCH] Fixed printf-related warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/variant.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 3f9c2cca69..12a9ded6d2 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -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 -- 2.47.2