mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[c] Fixes #2017, use REALLOC macro instead of realloc.
This commit is contained in:
parent
9e54dc4faa
commit
bf260a43ec
@ -161,8 +161,7 @@ static void _addToUpdateCache(_spSkeleton *const internal, _spUpdateType type, v
|
||||
_spUpdate *update;
|
||||
if (internal->updateCacheCount == internal->updateCacheCapacity) {
|
||||
internal->updateCacheCapacity *= 2;
|
||||
internal->updateCache = (_spUpdate *) realloc(internal->updateCache,
|
||||
sizeof(_spUpdate) * internal->updateCacheCapacity);
|
||||
internal->updateCache = (_spUpdate *) REALLOC(internal->updateCache, _spUpdate, internal->updateCacheCapacity);
|
||||
}
|
||||
update = internal->updateCache + internal->updateCacheCount;
|
||||
update->type = type;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user