Fix env_universal_common.cpp filesize comparisons.

* use off_t instead of size_t for file size where it can mismatch
  st_size's type in stat.h (cherry-pick merge omitted this)
This commit is contained in:
Aaron Gyes
2016-06-12 03:39:36 -07:00
parent 8e7f0e781d
commit 75e7784f18

View File

@@ -1175,9 +1175,9 @@ class universal_notifier_shmem_poller_t : public universal_notifier_t
report_error(err, L"Unable to open shared memory with path '%s'", path);
errored = true;
}
/* Get the size */
size_t size = 0;
off_t size = 0;
if (! errored)
{
struct stat buf = {};