From 014528254b39fc478558030c0e1a6deeeac52a24 Mon Sep 17 00:00:00 2001 From: Zeex Date: Sat, 26 Apr 2014 04:09:36 +0700 Subject: [PATCH] Fix value of cellmin/cellmax in x64 Linux build When built with PAWN_CELL_SIZE==32 cellmin anx cellmax were set to LONG_MIN anx LONG_MAX respectively, but long is 64 bits wide on 64-bit Linux systems (as opposed to Win64). Fixes #17. --- source/compiler/sc1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index 056628e..97f1fd6 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -1443,8 +1443,8 @@ static void setconstants(void) add_constant("cellmax",_I32_MAX,sGLOBAL,0); add_constant("cellmin",_I32_MIN,sGLOBAL,0); #else - add_constant("cellmax",LONG_MAX,sGLOBAL,0); - add_constant("cellmin",LONG_MIN,sGLOBAL,0); + add_constant("cellmax",INT_MAX,sGLOBAL,0); + add_constant("cellmin",INT_MIN,sGLOBAL,0); #endif #elif PAWN_CELL_SIZE==64 #if !defined _I64_MIN