1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-08 04:22:27 +00:00

Merge commit 'f4c9064b79d5b32fd74e5ddf25266356c22dd53b'

This commit is contained in:
Calvin Rose
2021-04-29 15:58:41 -05:00
30 changed files with 171 additions and 128 deletions

View File

@@ -7,13 +7,13 @@ typedef struct {
} num_array;
static num_array *num_array_init(num_array *array, size_t size) {
array->data = (double *)calloc(size, sizeof(double));
array->data = (double *)janet_calloc(size, sizeof(double));
array->size = size;
return array;
}
static void num_array_deinit(num_array *array) {
free(array->data);
janet_free(array->data);
}
static int num_array_gc(void *p, size_t s) {