We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c018af commit ea97fc9Copy full SHA for ea97fc9
ext/gd/libgd/gd_io.c
@@ -117,7 +117,7 @@ int gdGetWordLSB(signed short int *result, gdIOCtx *ctx)
117
118
int gdGetInt (int *result, gdIOCtx * ctx)
119
{
120
- int r;
+ unsigned int r;
121
r = (ctx->getC) (ctx);
122
GD_IO_EOF_CHK(r);
123
*result = r << 24;
@@ -141,7 +141,7 @@ int gdGetInt (int *result, gdIOCtx * ctx)
141
142
int gdGetIntLSB(signed int *result, gdIOCtx *ctx)
143
144
- int c = 0;
+ unsigned int c;
145
unsigned int r = 0;
146
147
c = (ctx->getC) (ctx);
0 commit comments