1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 16:25:11 +00:00

More work on improving errors.

This commit is contained in:
Calvin Rose
2018-04-29 20:13:04 -04:00
parent 96897a0d7a
commit 53f9c18669
9 changed files with 153 additions and 299 deletions

View File

@@ -23,7 +23,7 @@
#include <dst/dst.h>
#include "gc.h"
/* Iniializes an array */
/* Initializes an array */
DstArray *dst_array_init(DstArray *array, int32_t capacity) {
Dst *data = NULL;
if (capacity > 0) {
@@ -67,7 +67,7 @@ void dst_array_setcount(DstArray *array, int32_t count) {
return;
if (count > array->count) {
int32_t i;
dst_array_ensure(array, count + 1);
dst_array_ensure(array, count);
for (i = array->count; i < count; i++) {
array->data[i] = dst_wrap_nil();
}