Skip to content

Commit

Permalink
Use range-based for
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Nov 14, 2024
1 parent a2e4a4c commit 3e4a83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libexpr/eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1475,10 +1475,10 @@ void EvalState::callFunction(Value & fun, std::span<Value *> args, Value & vRes,
auto makeAppChain = [&]()
{
vRes = vCur;
for (size_t i = 0; i < args.size(); ++i) {
for (auto arg : args) {
auto fun2 = allocValue();
*fun2 = vRes;
vRes.mkPrimOpApp(fun2, args[i]);
vRes.mkPrimOpApp(fun2, arg);
}
};

Expand Down

0 comments on commit 3e4a83f

Please sign in to comment.