Fix 'comparison is always false due to limited range of data type'. One-bit flags should really be unsigned