make max size 1 at start
This commit is contained in:
@@ -10,7 +10,7 @@ type* data; \
|
|||||||
} type##ArrayList; \
|
} type##ArrayList; \
|
||||||
inline static type##ArrayList type##ArrayListCreate() { \
|
inline static type##ArrayList type##ArrayListCreate() { \
|
||||||
type##ArrayList list;\
|
type##ArrayList list;\
|
||||||
list.maxSize = 2; \
|
list.maxSize = 1; \
|
||||||
list.count = 0;\
|
list.count = 0;\
|
||||||
list.data = malloc(sizeof(type) * list.maxSize); \
|
list.data = malloc(sizeof(type) * list.maxSize); \
|
||||||
return list; \
|
return list; \
|
||||||
|
Reference in New Issue
Block a user