Fix a bug triggered by jv_array_slice.

This commit is contained in:
Stephen Dolan committed 2013-05-13 14:10:39 +01:00
1 parent e29db8d272
commit b0e65d149f
2 files changed
+13 -1

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ static jv* jvp_array_write(jv_nontrivial* a, int i) {
array->elements[j] = JV_NULL;
}
array->length = imax(pos + 1, array->length);
a->i[1] = imax(pos + 1, array->length);
a->i[1] = imax(pos + 1, a->i[1]);
return &array->elements[pos];
}
}