portability fix for negation of unsigned ints