From 27bd17f0678a24af5e98ca4ddf8fda5afe57bae2 Mon Sep 17 00:00:00 2001 From: badlogic Date: Mon, 5 Dec 2016 18:24:20 +0100 Subject: [PATCH] [c] IK bend direction had a sign conversion issue in SkeletonBinary when using -funsigned-char. Closes #794. --- spine-c/spine-c/src/spine/SkeletonBinary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-c/spine-c/src/spine/SkeletonBinary.c b/spine-c/spine-c/src/spine/SkeletonBinary.c index 7c7543755..be2dc71c4 100644 --- a/spine-c/spine-c/src/spine/SkeletonBinary.c +++ b/spine-c/spine-c/src/spine/SkeletonBinary.c @@ -36,7 +36,7 @@ #include "kvec.h" typedef struct { - const unsigned char* cursor; + const unsigned char* cursor; const unsigned char* end; } _dataInput; @@ -373,7 +373,7 @@ static spAnimation* _spSkeletonBinary_readAnimation (spSkeletonBinary* self, con for (frameIndex = 0; frameIndex < frameCount; ++frameIndex) { float time = readFloat(input); float mix = readFloat(input); - char bendDirection = readSByte(input); + signed char bendDirection = readSByte(input); spIkConstraintTimeline_setFrame(timeline, frameIndex, time, mix, bendDirection); if (frameIndex < frameCount - 1) readCurve(input, SUPER(timeline), frameIndex); }