瀏覽代碼

use pstrtod

David Rose 16 年之前
父節點
當前提交
541c12bb8a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      dtool/src/prc/configDeclaration.cxx

+ 2 - 1
dtool/src/prc/configDeclaration.cxx

@@ -14,6 +14,7 @@
 
 #include "configDeclaration.h"
 #include "configVariableCore.h"
+#include "pstrtod.h"
 
 
 ////////////////////////////////////////////////////////////////////
@@ -387,7 +388,7 @@ check_double_word(int n) {
 
       const char *nptr = word._str.c_str();
       char *endptr;
-      word._double = strtod(nptr, &endptr);
+      word._double = pstrtod(nptr, &endptr);
 
       if (*endptr == '\0') {
         word._flags |= F_valid_double;