ensure we don't pass a negative int to ctypes functions Some implementations, e.g. cygwin, use a table lookup that can cast a char to a negative array offset.