Skip to content

Commit

Permalink
ICU-21026 fix GCC warnings of signed-int left shift
Browse files Browse the repository at this point in the history
  • Loading branch information
echeran committed Mar 27, 2020
1 parent 73b50e6 commit 72e07c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion icu4c/source/tools/gensprep/store.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 72e07c0

Please sign in to comment.