made some updates
This commit is contained in:
parent
bc56a6a1c2
commit
4cf1a82974
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2
record.c
2
record.c
@ -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(ObjRef));
|
||||
int size = sizeof(*value) + (GET_ELEMENT_COUNT(value) * sizeof(*value));
|
||||
GET_REFS_PTR(arr)[point] = malloc(size);
|
||||
}
|
||||
* (ObjRef *)GET_REFS_PTR(arr)[point]->data = value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user