diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-02 10:20:57 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-02 10:20:57 +0000 |
| commit | decace60dac7c83e1dbca3fe400adf1dbea4147f (patch) | |
| tree | c1de98f5c9b5240f3b80ddd8ffa679fa3b9eba89 /src/bin | |
| parent | 2c876b676564879380f0d239e4fe723933e71717 (diff) | |
[trunk] Remove warning about -2147483648 (aka INT_MIN), causing this decimal constant is unsigned only in ISO C90
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/jp2/convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
