]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/snglinst.cpp
implement date events here if wxDatePickerCtrl is not used (as we need them too)
[wxWidgets.git] / src / unix / snglinst.cpp
index af5e2063a574916b95446cc7767f318d2a1a1cff..cbefbd864de119d18259e7e3c39acffabbb2ba2f 100644 (file)
@@ -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."));
     }