made some updates

This commit is contained in:
nilspolek 2024-01-27 18:53:42 +01:00
parent 4cf1a82974
commit 460def3fc6

View File

@ -36,7 +36,7 @@ void setField(ObjRef arr, int point, ObjRef value){
int size = sizeof(*value);
GET_REFS_PTR(arr)[point] = malloc(size);
}else{
int size = sizeof(*value) + (GET_ELEMENT_COUNT(value) * sizeof(*value));
int size = sizeof(*value) + (GET_ELEMENT_COUNT(value) * sizeof(void *));
GET_REFS_PTR(arr)[point] = malloc(size);
}
* (ObjRef *)GET_REFS_PTR(arr)[point]->data = value;