Fix a compiler warning about signed vs unsigned compare.