fix windows warning unsigned / signed mismatch