mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
whoops, nan() and nanf() require a parameter
This commit is contained in:
parent
0d7b4c1b26
commit
67770fa3dc
@ -356,7 +356,7 @@ cnan(double v) {
|
|||||||
INLINE float
|
INLINE float
|
||||||
make_nan(float) {
|
make_nan(float) {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
return nanf();
|
return nanf("");
|
||||||
#else
|
#else
|
||||||
return numeric_limits<float>::quiet_NaN();
|
return numeric_limits<float>::quiet_NaN();
|
||||||
#endif
|
#endif
|
||||||
@ -369,7 +369,7 @@ make_nan(float) {
|
|||||||
INLINE double
|
INLINE double
|
||||||
make_nan(double) {
|
make_nan(double) {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
return nan();
|
return nan("");
|
||||||
#else
|
#else
|
||||||
return numeric_limits<double>::quiet_NaN();
|
return numeric_limits<double>::quiet_NaN();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user