mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -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 == '-') {
|
if (esign == '-') {
|
||||||
value /= pow(evalue, 10.0);
|
value /= pow(10.0, evalue);
|
||||||
} else {
|
} else {
|
||||||
value *= pow(evalue, 10.0);
|
value *= pow(10.0, evalue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user