work around stupid C compiler warnings about tests being always true due to integer ranges