summaryrefslogtreecommitdiff
path: root/ext/gd/libgd/gd_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/libgd/gd_io.c')
-rw-r--r--ext/gd/libgd/gd_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gd/libgd/gd_io.c b/ext/gd/libgd/gd_io.c
index 9b5cc0c7dd..1ca822fc9b 100644
--- a/ext/gd/libgd/gd_io.c
+++ b/ext/gd/libgd/gd_io.c
@@ -117,7 +117,7 @@ int gdGetWordLSB(signed short int *result, gdIOCtx *ctx)
int gdGetInt (int *result, gdIOCtx * ctx)
{
- int r;
+ unsigned int r;
r = (ctx->getC) (ctx);
GD_IO_EOF_CHK(r);
*result = r << 24;
@@ -141,7 +141,7 @@ int gdGetInt (int *result, gdIOCtx * ctx)
int gdGetIntLSB(signed int *result, gdIOCtx *ctx)
{
- int c = 0;
+ unsigned int c;
unsigned int r = 0;
c = (ctx->getC) (ctx);