Skip to content

Commit 2a9356d

Browse files
isinf -> std::isinf in C++ code
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.
1 parent 4e34754 commit 2a9356d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ddm_fpt_lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ DMBase* DMBase::create(const ExtArray& drift, const ExtArray& sig2,
236236
const ExtArray& b_lo_deriv, const ExtArray& b_up_deriv,
237237
value_t dt, value_t invleak)
238238
{
239-
const bool infinvleak = isinf(invleak);
239+
const bool infinvleak = std::isinf(invleak);
240240
if (infinvleak) {
241241
const bool unit_sig2 = (sig2.isconst() && sig2[0] == 1.0);
242242
const bool constbounds = (b_lo.isconst() && b_up.isconst());

0 commit comments

Comments
 (0)