Skip to content

Commit

Permalink
Merge pull request #445 from kamkow1/fix/assertion
Browse files Browse the repository at this point in the history
Use be_assert() in be_module_setmember instead of assert()
  • Loading branch information
skiars authored Aug 29, 2024
2 parents 9f89a4c + c1c237f commit 5df11cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/be_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ int be_module_attr(bvm *vm, bmodule *module, bstring *attr, bvalue *dst)

bbool be_module_setmember(bvm *vm, bmodule *module, bstring *attr, bvalue *src)
{
assert(src);
be_assert(src);
bmap *attrs = module->table;
if (!gc_isconst(attrs)) {
bvalue *v = be_map_findstr(vm, attrs, attr);
Expand Down

0 comments on commit 5df11cb

Please sign in to comment.