Work around signed / unsigned mismatch