Skip to content

Commit

Permalink
Merge pull request #11849 from NixOS/autocall-const
Browse files Browse the repository at this point in the history
autoCallFunction: accept const Bindings &
  • Loading branch information
roberth authored Nov 10, 2024
2 parents aa9c0bc + a3613f2 commit 545956d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libexpr/eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ void EvalState::incrFunctionCall(ExprLambda * fun)
}


void EvalState::autoCallFunction(Bindings & args, Value & fun, Value & res)
void EvalState::autoCallFunction(const Bindings & args, Value & fun, Value & res)
{
auto pos = fun.determinePos(noPos);

Expand Down
2 changes: 1 addition & 1 deletion src/libexpr/eval.hh
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public:
* Automatically call a function for which each argument has a
* default value or has a binding in the `args` map.
*/
void autoCallFunction(Bindings & args, Value & fun, Value & res);
void autoCallFunction(const Bindings & args, Value & fun, Value & res);

/**
* Allocation primitives.
Expand Down

0 comments on commit 545956d

Please sign in to comment.