r14395: Fix coverity bug #55. Ensure no unsigned/signed comparisons.