mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
Use range-based for
This commit is contained in:
parent
a2e4a4c238
commit
3e4a83f53b
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user