[bugfix] crash on calling vector-ref
This commit is contained in:
parent
01a5819706
commit
5bb762b6e3
|
@ -72,7 +72,7 @@ pic_vec_vector_ref(pic_state *pic)
|
||||||
struct pic_vector *v;
|
struct pic_vector *v;
|
||||||
int k;
|
int k;
|
||||||
|
|
||||||
pic_get_args(pic, "vi", &v, k);
|
pic_get_args(pic, "vi", &v, &k);
|
||||||
|
|
||||||
return v->data[k];
|
return v->data[k];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue