diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-08-09 14:42:44 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-08-09 14:42:44 -0700 |
commit | 8947b985335cbf9b30cffb9e79f9ed7a1899e298 (patch) | |
tree | 5f581722feefdf7174baa31bb60599a7d17ba847 | |
parent | fbf5a27dbdbb61fbcdc135ed75d7ca5f2eab66b5 (diff) | |
download | pcu-8947b985335cbf9b30cffb9e79f9ed7a1899e298.tar.gz |
cast sizeof() to unsigned to avoid warnings on 64-bit
I doubt we'll ever see sizeof() returning a value larger than UINT_MAX...
-rw-r--r-- | compat-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat-util.h b/compat-util.h index 8b70b52..00f2fee 100644 --- a/compat-util.h +++ b/compat-util.h @@ -51,7 +51,7 @@ static off_t cstr_to_off_t(const char *nptr, char **endptr, int base) return (off_t)strtoll(nptr, endptr, base); fprintf(stderr, "unrecognized sizes:\n\toff_t: %u\n\tlong: %u\n", - sizeof(off_t), sizeof(long)); + (unsigned)sizeof(off_t), (unsigned)sizeof(long)); exit(1); } |