fix warning ("left shift of negative value") using a cast

Change-Id: Ie99e8ff87924a1d15e2c5d83bd9adf07dab04e94
This commit is contained in:
Pascal Massimino 2015-06-24 23:46:09 -07:00
parent 7017001462
commit 1819965e0a

View File

@ -19,7 +19,7 @@
#include "./lossless.h"
// For sign-extended multiplying constants, pre-shifted by 5:
#define CST_5b(X) (((int16_t)(X << 8)) >> 5)
#define CST_5b(X) (((int16_t)((uint16_t)X << 8)) >> 5)
//------------------------------------------------------------------------------
// Subtract-Green Transform