From decace60dac7c83e1dbca3fe400adf1dbea4147f Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Sun, 2 Mar 2014 10:20:57 +0000 Subject: [PATCH] [trunk] Remove warning about -2147483648 (aka INT_MIN), causing this decimal constant is unsigned only in ISO C90 --- src/bin/jp2/convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index ce7ecf2e..d0f73130 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -1424,7 +1424,7 @@ static inline int clamp( const int value, const int prec, const int sgnd ) { if (prec <= 8) return CLAMP(value,-128,127); else if (prec <= 16) return CLAMP(value,-32768,32767); - else return CLAMP(value,-2147483648,2147483647); + else return CLAMP(value,-2147483647-1,2147483647); } else {