Fixed building with Visual Studio
authorSam Lantinga <slouken@libsdl.org>
Fri, 26 Oct 2018 15:07:24 -0700
changeset 618cbf3b5d96be6
parent 617 d64228a395fc
child 619 6f43400b7d77
Fixed building with Visual Studio
IMG_pnm.c
     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;