avoid LLVM warning: skip ternary operator when value is unsigned (-Wtautological-compare).