Eliminate warning: comparison of signed and unsigned integers