Use range-based for

This commit is contained in:
Eelco Dolstra 2024-11-14 16:12:14 +01:00
parent a2e4a4c238
commit 3e4a83f53b

View File

@ -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);
}
};