ICU-21026 fix GCC warnings of signed-int left shift

This commit is contained in:
Elango Cheran 2020-03-26 14:21:26 -07:00 committed by Elango
parent 73b50e6463
commit 72e07c0d52

View file

@ -412,7 +412,8 @@ storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length,
int16_t delta = (int16_t)((int32_t)codepoint - (int16_t) mapping[0]);
if(delta >= SPREP_DELTA_RANGE_NEGATIVE_LIMIT && delta <= SPREP_DELTA_RANGE_POSITIVE_LIMIT){
trieWord = delta << 2;
trieWord = delta;
trieWord <<= 2;
/* make sure that the second bit is OFF */