diff --git a/spine-c/spine-c/src/spine/AnimationState.c b/spine-c/spine-c/src/spine/AnimationState.c index 5a0a4a1ff..cc3a30713 100644 --- a/spine-c/spine-c/src/spine/AnimationState.c +++ b/spine-c/spine-c/src/spine/AnimationState.c @@ -142,7 +142,7 @@ void _spEventQueue_drain (_spEventQueue* self) { if (self->drainDisabled) return; self->drainDisabled = 1; for (i = 0; i < self->objectsCount; i += 2) { - spEventType type = self->objects[i].type; + spEventType type = (spEventType)self->objects[i].type; spTrackEntry* entry = self->objects[i+1].entry; spEvent* event; switch (type) { diff --git a/spine-c/spine-c/src/spine/Skeleton.c b/spine-c/spine-c/src/spine/Skeleton.c index cc994bcc4..a6623e320 100644 --- a/spine-c/spine-c/src/spine/Skeleton.c +++ b/spine-c/spine-c/src/spine/Skeleton.c @@ -161,7 +161,7 @@ static void _addToUpdateCache(_spSkeleton* const internal, _spUpdateType type, v _spUpdate* update; if (internal->updateCacheCount == internal->updateCacheCapacity) { internal->updateCacheCapacity *= 2; - internal->updateCache = realloc(internal->updateCache, sizeof(_spUpdate) * internal->updateCacheCapacity); + internal->updateCache = (_spUpdate*)realloc(internal->updateCache, sizeof(_spUpdate) * internal->updateCacheCapacity); } update = internal->updateCache + internal->updateCacheCount; update->type = type; @@ -172,7 +172,7 @@ static void _addToUpdateCache(_spSkeleton* const internal, _spUpdateType type, v static void _addToUpdateCacheReset(_spSkeleton* const internal, spBone* bone) { if (internal->updateCacheResetCount == internal->updateCacheResetCapacity) { internal->updateCacheResetCapacity *= 2; - internal->updateCacheReset = realloc(internal->updateCacheReset, sizeof(spBone*) * internal->updateCacheResetCapacity); + internal->updateCacheReset = (spBone**)realloc(internal->updateCacheReset, sizeof(spBone*) * internal->updateCacheResetCapacity); } internal->updateCacheReset[internal->updateCacheResetCount] = bone; ++internal->updateCacheResetCount;