From 8947b985335cbf9b30cffb9e79f9ed7a1899e298 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 9 Aug 2009 14:42:44 -0700 Subject: [PATCH] cast sizeof() to unsigned to avoid warnings on 64-bit I doubt we'll ever see sizeof() returning a value larger than UINT_MAX... --- compat-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.4.GIT