From fc8505ff81a806361a2bfe7b782e923bc0600d76 Mon Sep 17 00:00:00 2001 From: mogemimi Date: Sat, 11 Jun 2016 06:41:23 +0900 Subject: [PATCH] Fix -Wshadow warning when compiling with Clang (#607) --- spine-c/src/spine/Animation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-c/src/spine/Animation.c b/spine-c/src/spine/Animation.c index 5bbef426f..84c1553ad 100644 --- a/spine-c/src/spine/Animation.c +++ b/spine-c/src/spine/Animation.c @@ -267,7 +267,7 @@ void _spRotateTimeline_apply (const spTimeline* timeline, spSkeleton* skeleton, bone = skeleton->bones[self->boneIndex]; if (time >= self->frames[self->framesCount - 2]) { /* Time is after last frame. */ - float amount = bone->data->rotation + self->frames[self->framesCount - 1] - bone->rotation; + amount = bone->data->rotation + self->frames[self->framesCount - 1] - bone->rotation; while (amount > 180) amount -= 360; while (amount < -180)