Fix gcc warning (signed-unsigned compare)