mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Mark Value pointers in Value::elems as const
This catches modification of finalized values (e.g. in prim_sort).
This commit is contained in:
parent
fecff520d7
commit
3e6730ee62
4 changed files with 7 additions and 6 deletions
|
@ -1946,7 +1946,7 @@ void ExprOpConcatLists::eval(EvalState & state, Env & env, Value & v)
|
|||
}
|
||||
|
||||
|
||||
void EvalState::concatLists(Value & v, size_t nrLists, Value * * lists, const PosIdx pos, std::string_view errorCtx)
|
||||
void EvalState::concatLists(Value & v, size_t nrLists, Value * const * lists, const PosIdx pos, std::string_view errorCtx)
|
||||
{
|
||||
nrListConcats++;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue