1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 23:11:16 +02:00

Merge pull request #11866 from DeterminateSystems/callFunction-span

callFunction: Use std::span
This commit is contained in:
Robert Hensing 2024-11-18 18:37:12 +01:00 committed by GitHub
commit 61d075840f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 28 deletions

View file

@ -67,7 +67,7 @@ nix_err nix_value_call_multi(nix_c_context * context, EvalState * state, nix_val
if (context)
context->last_err_code = NIX_OK;
try {
state->state.callFunction(fn->value, nargs, (nix::Value * *)args, value->value, nix::noPos);
state->state.callFunction(fn->value, {(nix::Value * *) args, nargs}, value->value, nix::noPos);
state->state.forceValue(value->value, nix::noPos);
}
NIXC_CATCH_ERRS