X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30984deafc05d7c6f88db736336fe73d23a08e19..ff1ce99740964bffda6e8ee630ddf799d639cf69:/src/unix/snglinst.cpp?ds=sidebyside diff --git a/src/unix/snglinst.cpp b/src/unix/snglinst.cpp index af5e2063a5..cbefbd864d 100644 --- a/src/unix/snglinst.cpp +++ b/src/unix/snglinst.cpp @@ -277,8 +277,8 @@ bool wxSingleInstanceCheckerImpl::Create(const wxString& name) } char buf[256]; - size_t count = file.Read(buf, WXSIZEOF(buf)); - if ( count == (size_t)wxInvalidOffset ) + ssize_t count = file.Read(buf, WXSIZEOF(buf)); + if ( count == wxInvalidOffset ) { wxLogError(_("Failed to read PID from lock file.")); }