Fix comparison errors signed/unsigned.