Skip to content

Commit

Permalink
Don't hardcode vm_top_t size
Browse files Browse the repository at this point in the history
  • Loading branch information
CurlyMoo committed Jun 14, 2024
1 parent a478647 commit 811d711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1985,8 +1985,8 @@ static void bc_assign_slots(struct rules_t *obj) {
gettype(obj->bc.buffer[a]) == OP_RET)) {
end = bc_before(obj, a);
break;
} else if(bc_next(obj, a) >= 0 &&
gettype(obj->bc.buffer[a]) == OP_SETVAL && gettype(obj->bc.buffer[a+4]) == OP_SETVAL) {
} else if((c = bc_next(obj, a)) >= 0 &&
gettype(obj->bc.buffer[a]) == OP_SETVAL && gettype(obj->bc.buffer[c]) == OP_SETVAL) {
end = a;
break;
}
Expand Down

0 comments on commit 811d711

Please sign in to comment.