Change parameter type to suppress -Wsign-compare warnings