diff --git a/libs/collections/list.c b/libs/collections/list.c index 4f89e32..b264e0c 100644 --- a/libs/collections/list.c +++ b/libs/collections/list.c @@ -447,7 +447,7 @@ GroundValue createListStruct() { groundAddFieldToStruct(&listStruct, "size", groundCreateValue(INT, 0)); // number of elements groundAddFieldToStruct(&listStruct, "memSize", groundCreateValue(INT, sizeof(GroundValue) * STARTING_ELEMENTS)); // number of bytes allocated groundAddFieldToStruct(&listStruct, "capacity", groundCreateValue(INT, STARTING_ELEMENTS)); // number of elements that can fit in the currently allocated space - groundAddFieldToStruct(&listStruct, "__ptr", groundCreateValue(INT, items)); // pointer to internal list struct + groundAddFieldToStruct(&listStruct, "private_ptr", groundCreateValue(INT, items)); // pointer to internal list struct groundAddFunctionToStruct(&listStruct, "append", appendToListStruct, INT, 1, INT, "value"); // append item to end of list groundAddFunctionToStruct(&listStruct, "string", listStructToString, STRING, 0); // convert list to string