From 5fd78a8e6f21521e5bb5280119f0c5c62fab9cc5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Oct 2012 12:27:53 +0000 Subject: [PATCH] Fix warning about signed/unsigned comparison in wxFile::ReadAll(). Compare ssize_t value with another ssize_t value instead of size_t one to avoid warnings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/file.cpp b/src/common/file.cpp index f9badf5395..e553b2c833 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -302,7 +302,7 @@ bool wxFile::ReadAll(wxString *str, const wxMBConv& conv) char* p = buf.data(); for ( ;; ) { - static const unsigned READSIZE = 4096; + static const ssize_t READSIZE = 4096; ssize_t nread = Read(p, length > READSIZE ? READSIZE : length); if ( nread == wxInvalidOffset ) -- 2.47.2