Skip to content

Commit

Permalink
fix extra_nifs size
Browse files Browse the repository at this point in the history
  • Loading branch information
jackalcooper committed Apr 28, 2024
1 parent 146fa71 commit 8bdd649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kinda.zig
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub fn ResourceKind(comptime ElementType: type, comptime module_name_: anytype)
ElementType.nifs
else
.{};
pub const nifs: [numOfNIFsPerKind]e.ErlNifFunc = .{
pub const nifs: [numOfNIFsPerKind + @typeInfo(@TypeOf(extra_nifs)).Struct.fields.len]e.ErlNifFunc = .{
result.nif(module_name ++ ".ptr", 1, ptr_maker).entry,
result.nif(module_name ++ ".ptr_to_opaque", 1, ptr_to_opaque).entry,
result.nif(module_name ++ ".opaque_ptr", 1, opaque_ptr).entry,
Expand Down

0 comments on commit 8bdd649

Please sign in to comment.