mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Fix pstrtod bug with exponents
This commit is contained in:
parent
87451d8000
commit
44346769b4
@ -132,9 +132,9 @@ pstrtod(const char *nptr, char **endptr) {
|
||||
}
|
||||
|
||||
if (esign == '-') {
|
||||
value /= pow(evalue, 10.0);
|
||||
value /= pow(10.0, evalue);
|
||||
} else {
|
||||
value *= pow(evalue, 10.0);
|
||||
value *= pow(10.0, evalue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user