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

@@ -347,7 +347,7 @@ float BPY_driver_exec(ChannelDriver *driver, const float evaltime)
if (use_gil)
PyGILState_Release(gilstate);
if (finite(result)) {
if (isfinite(result)) {
return (float)result;
}
else {

View File

@@ -148,4 +148,4 @@ bool BPy_errors_to_report_ex(ReportList *reports, const bool use_full, const boo
bool BPy_errors_to_report(ReportList *reports)
{
return BPy_errors_to_report_ex(reports, true, true);
}
}