mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-31 23:46:48 +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
|
#ifdef HAVE_BOEHMGC
|
||||||
(GC)
|
(GC)
|
||||||
#endif
|
#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)
|
if (args)
|
||||||
for (size_t i = 0; args[i]; i++)
|
for (size_t i = 0; args[i]; i++)
|
||||||
p->args.emplace_back(*args);
|
p->args.emplace_back(*args);
|
||||||
|
|
Loading…
Reference in a new issue