Skip to content

Commit 3199963

Browse files
author
Vesselin Atanasov
committed
Fix compatibility with Jinja for the % operator.
1 parent 86dfb93 commit 3199963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/value_visitors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ struct BinaryMathOperation : BaseVisitor<>
553553
result = left / right;
554554
break;
555555
case jinja2::BinaryExpression::DivReminder:
556-
result = std::remainder(left, right);
556+
result = std::fmod(left, right);
557557
break;
558558
case jinja2::BinaryExpression::DivInteger:
559559
{

0 commit comments

Comments
 (0)