Bug#802875: shifting a negative signed value is undefined

2021-11-29 Thread Mathieu Malaterre
Control: tags -1 wontfix Control: notfound -1 1:1.3.1-11 The code has always been built with: #define AVOID_TABLES So the negative signed value shifting is never actually used in Debian binaries. Closing as invalid.

Bug#802875: shifting a negative signed value is undefined

2015-10-24 Thread Mathieu Malaterre
Package: libjpeg-turbo Version: 1:1.3.1-11 Severity: minor Tags: upstream It would be nice to rewrite the following piece of code: static const int extend_offset[16] = /* entry n is (-1 << n) + 1 */ { 0, ((-1)<<1) + 1, ((-1)<<2) + 1, ((-1)<<3) + 1, ((-1)<<4) + 1, ((-1)<<5) + 1, ((-1)<<6) +