Avoid compilation warnings about signed vs unsigned cmp