Skip to content

Commit 5d824c3

Browse files
committed
Swap cIf and cAbsIf cases
Refs #4054
1 parent 0142fe9 commit 5d824c3

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)