From: Moriyoshi Koizumi Date: Fri, 10 Jan 2003 04:37:26 +0000 (+0000) Subject: Reduced compiler warnings X-Git-Tag: PHP_5_0_dev_before_13561_fix~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ecd3ff91a13e94cc5ef240d6d8b87644b25c567;p=php Reduced compiler warnings --- diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c index 1a8e1e7be8..595fe6b17a 100644 --- a/ext/mime_magic/mime_magic.c +++ b/ext/mime_magic/mime_magic.c @@ -1425,7 +1425,7 @@ static int mget(union VALUETYPE *p, unsigned char *s, { long offset = m->offset; - if (offset + sizeof(union VALUETYPE) > nbytes) + if (offset + (long)sizeof(union VALUETYPE) > nbytes) return 0; memcpy(p, s + offset, sizeof(union VALUETYPE)); @@ -1447,7 +1447,7 @@ static int mget(union VALUETYPE *p, unsigned char *s, break; } - if (offset + sizeof(union VALUETYPE) > nbytes) + if (offset + (long)sizeof(union VALUETYPE) > nbytes) return 0; memcpy(p, s + offset, sizeof(union VALUETYPE));