fix windows warning about signed unsigned mismatch