Skip to content

Commit

Permalink
Fixed building with Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 26, 2018
1 parent 89b11d0 commit 83133ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IMG_pnm.c
Expand Up @@ -91,7 +91,7 @@ static int ReadNumber(SDL_RWops *src)
}
do {
/* Protect from possible overflow */
if (number >= INT32_MAX / 10) {
if (number >= (SDL_MAX_SINT32 / 10)) {
return -1;
}
number *= 10;
Expand Down

0 comments on commit 83133ca

Please sign in to comment.