Browse Source

Reduced compiler warnings

PHP-5
Moriyoshi Koizumi 24 years ago
parent
commit
7ecd3ff91a
  1. 4
      ext/mime_magic/mime_magic.c

4
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));

Loading…
Cancel
Save