Fix signed/unsigned compare