Don't dereference pointer from _array_get
This commit is contained in:
@@ -70,7 +70,7 @@ BEGIN_C_LINKAGE
|
||||
#define wapp_array_item_size(TYPE, ARRAY_PTR) \
|
||||
_array_item_size((u8 *)ARRAY_PTR, sizeof(TYPE))
|
||||
#define wapp_array_get(TYPE, ARRAY_PTR, INDEX) \
|
||||
(*((TYPE *)_array_get((u8 *)ARRAY_PTR, INDEX, sizeof(TYPE))))
|
||||
((TYPE *)_array_get((u8 *)ARRAY_PTR, INDEX, sizeof(TYPE)))
|
||||
#define wapp_array_set(TYPE, ARRAY_PTR, INDEX, VALUE_PTR) \
|
||||
_array_set((u8 *)ARRAY_PTR, INDEX, (u8 *)VALUE_PTR, sizeof(TYPE))
|
||||
#define wapp_array_append_capped(TYPE, ARRAY_PTR, VALUE_PTR) \
|
||||
|
||||
Reference in New Issue
Block a user