tlk00 / BitMagic

BitMagic Library
http://bitmagic.io
Other
412 stars 48 forks source link

bitscan_wave: Defer unsigned short usage until return. #58

Closed ucko closed 4 years ago

ucko commented 4 years ago

Some compilers (at minimum GCC 7.3.0 with -Wconversion) otherwise issue warnings about possibly lossy int -> unsigned short conversion on the += lines, presumably due to implicit promotion of sums.