X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30984deafc05d7c6f88db736336fe73d23a08e19..01b92baa9c59457765e7a5ed1df74f45d4bcd80b:/src/unix/snglinst.cpp 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.")); }