From 0dd45f93a3c24a0b830a5ce12ae75cde9bf01d9a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 28 Mar 2025 13:43:22 -0400 Subject: [PATCH] Remove unnecessary check --- src/stdlib/arrays.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stdlib/arrays.c b/src/stdlib/arrays.c index 152460a..6579536 100644 --- a/src/stdlib/arrays.c +++ b/src/stdlib/arrays.c @@ -185,8 +185,7 @@ public void Array$remove_at(Array_t *arr, Int_t int_index, Int_t int_count, int6 if (index == 1) { arr->data += arr->stride * count; } else if (index + count > arr->length) { - if (arr->free >= 0) - arr->free += count; + arr->free += count; } else if (arr->data_refcount != 0 || (int64_t)arr->stride != padded_item_size) { void *copy = arr->atomic ? GC_MALLOC_ATOMIC((size_t)((arr->length-1) * padded_item_size)) : GC_MALLOC((size_t)((arr->length-1) * padded_item_size));