fix Microsoft Visual C compliance