提交 aa9367d8 编写于 作者: E Enrico Giordani

[Fix] 'Infinity' parsing.

Fixes issue #455. Credits to @id-ilych for investigating the issue.
上级 cc6ce270
......@@ -41,7 +41,7 @@ double wstrtod(const char *nptr, char **eptr) {
if (_strnicmp("INF", nptr, 3) == 0) {
if (eptr != NULL) {
if (_strnicmp("INFINITE", nptr, 8) == 0) {
if ((_strnicmp("INFINITE", nptr, 8) == 0) || (_strnicmp("INFINITY", nptr, 8) == 0)) {
*eptr = (char*) (nptr + 8);
} else {
*eptr = (char*) (nptr + 3);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册