bugfix: do not rewind arena_index up to before pic_try
This commit is contained in:
parent
99c269e7ea
commit
f7ab0a9cd6
|
@ -730,6 +730,7 @@ pic_read(pic_state *pic, pic_value port)
|
|||
reader_init(pic, &p);
|
||||
|
||||
pic_try {
|
||||
size_t ai = pic_enter(pic);
|
||||
while ((c = skip(pic, port, next(pic, port))) != EOF) {
|
||||
val = read_nullable(pic, port, c, &p);
|
||||
|
||||
|
|
2
lib/gc.c
2
lib/gc.c
|
@ -193,7 +193,7 @@ pic_alloca(pic_state *pic, size_t n)
|
|||
{
|
||||
static const pic_data_type t = { "pic_alloca", pic_free };
|
||||
|
||||
return pic_data(pic, pic_data_value(pic, pic_malloc(pic, n), &t)); /* TODO optimize */
|
||||
return pic_data(pic, pic_data_value(pic, pic_malloc(pic, n), &t));
|
||||
}
|
||||
|
||||
/* MARK */
|
||||
|
|
Loading…
Reference in New Issue