fix warning for signed/unsigned comparisons