From 225a48a8d98fb5ba7edf80e882a8ae2c40852407 Mon Sep 17 00:00:00 2001 From: Timerix Date: Tue, 18 Nov 2025 22:37:27 +0500 Subject: [PATCH] List_index fix --- include/tlibc/collections/List.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tlibc/collections/List.h b/include/tlibc/collections/List.h index 6f77de6..5308a0f 100755 --- a/include/tlibc/collections/List.h +++ b/include/tlibc/collections/List.h @@ -37,6 +37,6 @@ void List_push_size(List_* self, void* values, u32 size); bool List_removeAt_size(List_* self, u32 i, u32 remove_size); #define List_len(SELF, T) (SELF.size / sizeof(T)) -#define List_index(SELF, T, I) ((T*)SELF.data)[I] +#define List_index(SELF, T, I) (((T*)SELF.data)[I]) #define List_castTo_Array(SELF) Array_construct_size(SELF.data, SELF.size)