Skip to content

Commit

Permalink
Merge pull request #452 from s-hadinger/minor_fix_2024
Browse files Browse the repository at this point in the history
Minor fixes in code
  • Loading branch information
skiars authored Nov 6, 2024
2 parents 96bb7ba + a0ce4d1 commit b4b87d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/be_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ static void class_stmt(bparser *parser)
bexpdesc e1; /* if inline class, we add a second local variable for _class */
init_exp(&e1, ETLOCAL, 0);
e1.v.idx = new_localvar(parser, class_str);
be_code_setvar(parser->finfo, &e1, &e, 1);
be_code_setvar(parser->finfo, &e1, &e, btrue);

begin_varinfo(parser, class_str);

Expand Down
2 changes: 1 addition & 1 deletion src/be_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ static void vm_exec(bvm *vm)
}
} else if (var_isclass(a)) {
/* in this case we have a class in a static or non-static member */
/* it's always treated like a statif function */
/* it's always treated like a static function */
a[1] = result;
var_settype(a, NOT_METHOD);
} else {
Expand Down

0 comments on commit b4b87d8

Please sign in to comment.