summaryrefslogtreecommitdiff
path: root/ext/mime_magic
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-01-10 04:37:26 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-01-10 04:37:26 +0000
commit7ecd3ff91a13e94cc5ef240d6d8b87644b25c567 (patch)
treecdc0e18733519191c03afa5cf8802ca7ed32d1ca /ext/mime_magic
parent6a1d69d4ba25aadb4d8e28f1c5a7208a29357589 (diff)
downloadphp-git-7ecd3ff91a13e94cc5ef240d6d8b87644b25c567.tar.gz
Reduced compiler warnings
Diffstat (limited to 'ext/mime_magic')
-rw-r--r--ext/mime_magic/mime_magic.c4
1 files changed, 2 insertions, 2 deletions
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));