]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation warning about printf type mismatch
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Jul 2004 22:38:22 +0000 (22:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Jul 2004 22:38:22 +0000 (22:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/http.cpp

index e444c296f8efc0432517a6c86e7d3d5bcd2e5c23..0e7d3a33469e578d1646faa53ed8c0ce66373812 100644 (file)
@@ -219,7 +219,7 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
   case wxHTTP_POST:
     request = wxT("POST");
     if ( GetHeader( wxT("Content-Length") ).IsNull() )
   case wxHTTP_POST:
     request = wxT("POST");
     if ( GetHeader( wxT("Content-Length") ).IsNull() )
-      SetHeader( wxT("Content-Length"), wxString::Format( wxT("%ld"), m_post_buf.Len() ) );
+      SetHeader( wxT("Content-Length"), wxString::Format( wxT("%lu"), (unsigned long)m_post_buf.Len() ) );
     break;
   default:
     return FALSE;
     break;
   default:
     return FALSE;