Fix signed / unsigned mismatch