diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-03 14:40:56 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-03 14:40:56 -0400 |
| commit | 2b9bec18a4b3f2aa5065489389261583acb1c163 (patch) | |
| tree | 22f0aabb84bfbd04c3c85609120a6b51bebb0f64 /builtins/array.h | |
| parent | b2e752ee3257e967fa4796b39054a7f32629291d (diff) | |
Fix for stride overflows in arrays
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtins/array.h b/builtins/array.h index d60483db..94edfb4f 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -66,8 +66,8 @@ void Array$compact(array_t *arr, const TypeInfo *type); bool Array$contains(array_t array, void *item, const TypeInfo *type); array_t Array$from(array_t array, int64_t first); array_t Array$to(array_t array, int64_t last); -array_t Array$by(array_t array, int64_t stride); -array_t Array$reversed(array_t array); +array_t Array$by(array_t array, int64_t stride, const TypeInfo *type); +array_t Array$reversed(array_t array, const TypeInfo *type); array_t Array$concat(array_t x, array_t y, const TypeInfo *type); uint32_t Array$hash(const array_t *arr, const TypeInfo *type); int32_t Array$compare(const array_t *x, const array_t *y, const TypeInfo *type); |
