Fix -Wsign-compare warning