Skip to content

Commit

Permalink
Merge pull request #2 from razhangwei/patch-1
Browse files Browse the repository at this point in the history
Fix the ambiguous issue when compiled on linux.
  • Loading branch information
YujiaBao committed Sep 13, 2018
2 parents 048f4cb + 3964f29 commit 51fb864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hawkes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ void updateBaseline (dataPackage *info) {
integral += tmp * wholeDuration[p][ii];
}

if (isinf(integral) || isnan(integral)) {
if (std::isinf(integral) || std::isnan(integral)) {
cerr << "Invalid integral value. Need to shrink step size for FISTA." << endl;
exit(1);
}
Expand Down

0 comments on commit 51fb864

Please sign in to comment.