From 83133ca307c3fddd5bc921532943cde42fea7458 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 26 Oct 2018 15:07:24 -0700 Subject: [PATCH] Fixed building with Visual Studio --- IMG_pnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IMG_pnm.c b/IMG_pnm.c index 35b66318..a2992c13 100644 --- a/IMG_pnm.c +++ b/IMG_pnm.c @@ -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;