Fix shift

This commit is contained in:
Behdad Esfahbod 2018-07-10 16:34:31 +02:00
parent 25aa411ac5
commit 718dfd4189
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ hb_ctz (T v)
{
unsigned int shift = 64;
return (uint64_t) v ? hb_bit_storage<uint64_t> ((uint64_t) v) :
hb_bit_storage<uint64_t> ((uint64_t) v >> shift) + shift;
hb_bit_storage<uint64_t> ((uint64_t) (v >> shift)) + shift;
}
assert (0);