From 4bef22e190257076316cc8dc9cfa863649953d80 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 21 Apr 2010 05:48:57 +0200 Subject: [PATCH] Add change from portableproplib's git master to fix a warning with -Wextra: commit 1296cfff2dd84a09f973bd446a75d5b92001506d Author: Juan RP Date: Wed Apr 21 05:47:34 2010 +0200 prop_object: add cast for -Wextra. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100421034857-oxkoa87srg5olsrx --- lib/portableproplib/prop_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portableproplib/prop_object.c b/lib/portableproplib/prop_object.c index 7a2c55af..fab7f555 100644 --- a/lib/portableproplib/prop_object.c +++ b/lib/portableproplib/prop_object.c @@ -918,7 +918,7 @@ _prop_object_internalize_map_file(const char *fname) return (NULL); } mf->poimf_mapsize = ((size_t)sb.st_size + pgmask) & ~pgmask; - if (mf->poimf_mapsize < sb.st_size) { + if (mf->poimf_mapsize < (size_t)sb.st_size) { (void) close(fd); _PROP_FREE(mf, M_TEMP); return (NULL);