C99/C++11: replace deprecated finite() by isfinite().

This commit is contained in:
2016-05-16 00:48:02 +02:00
parent 2b73402547
commit 21fddf7d1c
19 changed files with 35 additions and 45 deletions

View File

@@ -45,7 +45,7 @@
#ifdef _WIN32
#include "BLI_path_util.h" /* BLI_setenv() */
#include "BLI_math_base.h" /* finite() */
#include "BLI_math_base.h" /* isfinite() */
#endif
/* array utility function */
@@ -1026,7 +1026,7 @@ bool PyC_RunString_AsNumber(const char *expr, double *value, const char *filenam
if (val == -1 && PyErr_Occurred()) {
ok = false;
}
else if (!finite(val)) {
else if (!isfinite(val)) {
*value = 0.0;
}
else {