IMG_pnm.c
changeset 618 cbf3b5d96be6
parent 591 90a531f221f2
child 638 e3e9d7430674
     1.1 --- a/IMG_pnm.c	Fri Oct 26 14:58:01 2018 -0700
     1.2 +++ b/IMG_pnm.c	Fri Oct 26 15:07:24 2018 -0700
     1.3 @@ -91,7 +91,7 @@
     1.4      }
     1.5      do {
     1.6          /* Protect from possible overflow */
     1.7 -        if (number >= INT32_MAX / 10) {
     1.8 +        if (number >= (SDL_MAX_SINT32 / 10)) {
     1.9              return -1;
    1.10          }
    1.11          number *= 10;