]> git.saurik.com Git - wxWidgets.git/commitdiff
fix printf() argument type in GetOsInfo()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 Aug 2006 20:30:17 +0000 (20:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 Aug 2006 20:30:17 +0000 (20:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/console/console.cpp

index 7f0b545c80ea9972e139d886c9e12d3a0b329b46..73c652357b8328fbecb8b4cb2b162bee89f503e0 100644 (file)
@@ -1502,7 +1502,7 @@ static void TestOsInfo()
     wxPrintf(_T("Running under: %s, version %d.%d\n"),
             wxGetOsDescription().c_str(), major, minor);
 
     wxPrintf(_T("Running under: %s, version %d.%d\n"),
             wxGetOsDescription().c_str(), major, minor);
 
-    wxPrintf(_T("%ld free bytes of memory left.\n"), wxGetFreeMemory());
+    wxPrintf(_T("%ld free bytes of memory left.\n"), wxGetFreeMemory().ToLong());
 
     wxPrintf(_T("Host name is %s (%s).\n"),
            wxGetHostName().c_str(), wxGetFullHostName().c_str());
 
     wxPrintf(_T("Host name is %s (%s).\n"),
            wxGetHostName().c_str(), wxGetFullHostName().c_str());