Skip to content

Commit

Permalink
isinf -> std::isinf in C++ code
Browse files Browse the repository at this point in the history
Running `python setup.py build` used to produce the following error on Ubuntu 17.04:

```
../src/ddm_fpt_lib.cpp:239:42: error: ‘isinf’ was not declared in this scope
     const bool infinvleak = isinf(invleak);
```

This change fixes it.
  • Loading branch information
carlobaldassi authored Nov 16, 2017
1 parent 4e34754 commit 2a9356d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ddm_fpt_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ DMBase* DMBase::create(const ExtArray& drift, const ExtArray& sig2,
const ExtArray& b_lo_deriv, const ExtArray& b_up_deriv,
value_t dt, value_t invleak)
{
const bool infinvleak = isinf(invleak);
const bool infinvleak = std::isinf(invleak);
if (infinvleak) {
const bool unit_sig2 = (sig2.isconst() && sig2[0] == 1.0);
const bool constbounds = (b_lo.isconst() && b_up.isconst());
Expand Down

0 comments on commit 2a9356d

Please sign in to comment.