Get rid of secure warnings.

This commit is contained in:
Victor Zverovich
2013-02-27 14:45:04 -08:00
parent 8e49d7004b
commit 478d004c1d
2 changed files with 20 additions and 13 deletions

View File

@@ -191,7 +191,8 @@ inline int SignBit(double value) {
if (value < 0) return 1;
if (value == value) return 0;
int dec = 0, sign = 0;
_ecvt(value, 0, &dec, &sign);
char dummy;
_ecvt_s(&dummy, 1, value, 0, &dec, &sign);
return sign;
}