Skip to content

Commit 2657abb

Browse files
authored
Merge pull request #4059 from jwpeterson/fix_fparser_conditionals
Swap cIf and cAbsIf cases
2 parents 0142fe9 + 5d824c3 commit 2657abb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contrib/fparser/fparser_ad.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,9 @@ bool FunctionParserADBase<Value_t>::JITCodeGen(std::ostream & ccout, const std::
989989
unsigned long ip = ByteCode[++i] + 1;
990990

991991
if (op == cIf)
992-
ccout << "if (std::abs(s[" << sp-- << "]) < 0.5) ";
993-
if (op == cAbsIf)
994992
ccout << "if (s[" << sp-- << "] < 0.5) ";
993+
if (op == cAbsIf)
994+
ccout << "if (std::abs(s[" << sp-- << "]) < 0.5) ";
995995

996996
if (ip >= ByteCode.size())
997997
ccout << "*ret = s[" << sp << "]; return;\n";

0 commit comments

Comments
 (0)