From 98b8226c70615d9c76f7082b54e72da87d7e9289 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Wed, 21 Sep 2022 20:17:30 -0400 Subject: [PATCH] Remove unnecessary cast --- lib/src/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/array.h b/lib/src/array.h index 69e9d9ca..abec9410 100644 --- a/lib/src/array.h +++ b/lib/src/array.h @@ -154,7 +154,7 @@ static inline void array__reserve(VoidArray *self, size_t element_size, uint32_t } else { self->contents = ts_malloc(new_capacity * element_size); } - self->capacity = (uint32_t)new_capacity; + self->capacity = new_capacity; } }