mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
nix_api_value: fix primop arity
This commit is contained in:
parent
e76652a5d3
commit
748b322ddd
1 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,11 @@ PrimOp *nix_alloc_primop(nix_c_context *context, PrimOpFun fun, int arity,
|
|||
#ifdef HAVE_BOEHMGC
|
||||
(GC)
|
||||
#endif
|
||||
nix::PrimOp{.name = name, .args = {}, .doc = doc, .fun = fun2};
|
||||
nix::PrimOp{.name = name,
|
||||
.args = {},
|
||||
.arity = (size_t)arity,
|
||||
.doc = doc,
|
||||
.fun = fun2};
|
||||
if (args)
|
||||
for (size_t i = 0; args[i]; i++)
|
||||
p->args.emplace_back(*args);
|
||||
|
|
Loading…
Reference in a new issue