Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoNex committed Oct 23, 2023
1 parent 154e1bb commit 8b736c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/compiler/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static inline void encode_objects(struct buffer *buf, struct object *objs, size_
write_uint32(buf, o.data.str->len);
write_string(buf, o.data.str->str);
break;
case obj_function:
case obj_function: {
struct function *fn = o.data.fn;
write_uint32(buf, fn->num_params);
write_uint32(buf, fn->num_locals);
Expand All @@ -90,6 +90,7 @@ static inline void encode_objects(struct buffer *buf, struct object *objs, size_
write_uint32(buf, fn->bklen);
encode_bookmarks(buf, fn->bookmarks, fn->bklen);
break;
}
default:
fatalf("encoder: unsupported encoding for type %s\n", otype_str(o.type));
}
Expand Down

0 comments on commit 8b736c7

Please sign in to comment.