mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Fixing unsigned/signed problems (and i thought about it before...)
This commit is contained in:
parent
e93f1c00c6
commit
25456939b3
@ -91,7 +91,7 @@ PHP_MINIT_FUNCTION(imagetypes)
|
||||
static struct gfxinfo *php_handle_gif (php_stream * stream TSRMLS_DC)
|
||||
{
|
||||
struct gfxinfo *result = NULL;
|
||||
char dim[5];
|
||||
unsigned char dim[5];
|
||||
|
||||
if (php_stream_seek(stream, 3, SEEK_CUR))
|
||||
return NULL;
|
||||
@ -114,7 +114,7 @@ static struct gfxinfo *php_handle_gif (php_stream * stream TSRMLS_DC)
|
||||
static struct gfxinfo *php_handle_psd (php_stream * stream TSRMLS_DC)
|
||||
{
|
||||
struct gfxinfo *result = NULL;
|
||||
char dim[8];
|
||||
unsigned char dim[8];
|
||||
|
||||
if (php_stream_seek(stream, 11, SEEK_CUR))
|
||||
return NULL;
|
||||
@ -135,7 +135,7 @@ static struct gfxinfo *php_handle_psd (php_stream * stream TSRMLS_DC)
|
||||
static struct gfxinfo *php_handle_bmp (php_stream * stream TSRMLS_DC)
|
||||
{
|
||||
struct gfxinfo *result = NULL;
|
||||
char dim[12];
|
||||
unsigned char dim[12];
|
||||
|
||||
if (php_stream_seek(stream, 15, SEEK_CUR))
|
||||
return NULL;
|
||||
@ -276,7 +276,7 @@ static struct gfxinfo *php_handle_swf (php_stream * stream TSRMLS_DC)
|
||||
static struct gfxinfo *php_handle_png (php_stream * stream TSRMLS_DC)
|
||||
{
|
||||
struct gfxinfo *result = NULL;
|
||||
char dim[8];
|
||||
unsigned char dim[8];
|
||||
|
||||
if (php_stream_seek(stream, 8, SEEK_CUR))
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user