C99/C++11: replace deprecated finite() by isfinite().
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user