mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
use pstrtod
This commit is contained in:
parent
d8d52f70a0
commit
541c12bb8a
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "configDeclaration.h"
|
#include "configDeclaration.h"
|
||||||
#include "configVariableCore.h"
|
#include "configVariableCore.h"
|
||||||
|
#include "pstrtod.h"
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -387,7 +388,7 @@ check_double_word(int n) {
|
|||||||
|
|
||||||
const char *nptr = word._str.c_str();
|
const char *nptr = word._str.c_str();
|
||||||
char *endptr;
|
char *endptr;
|
||||||
word._double = strtod(nptr, &endptr);
|
word._double = pstrtod(nptr, &endptr);
|
||||||
|
|
||||||
if (*endptr == '\0') {
|
if (*endptr == '\0') {
|
||||||
word._flags |= F_valid_double;
|
word._flags |= F_valid_double;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user