compare as bit patterns with uint rather than int, in case not 2's complement