ICU-13461 Fixing signed/unsigned operation that was causing runtime warnings in Clang.

X-SVN-Rev: 40681
This commit is contained in:
Shane Carr 2017-12-01 07:46:22 +00:00
parent c61c9609a3
commit 10ff53a889

View File

@ -100,9 +100,9 @@ static void set32x64Bits(uint32_t table[64], int32_t start, int32_t limit) {
++lead;
}
if(lead<limitLead) {
bits=~((1<<lead)-1);
bits=~(((unsigned)1<<lead)-1);
if(limitLead<0x20) {
bits&=(1<<limitLead)-1;
bits&=((unsigned)1<<limitLead)-1;
}
for(trail=0; trail<64; ++trail) {
table[trail]|=bits;