silence some compiler warnings about sign mismatch