Fixed warning for signed comparison.