From a50aedd71cc57361f5686e0cb8bd5a55d5a7cdac Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 14 Sep 2022 10:51:41 +0200 Subject: [PATCH] [c] Fix compiler warning/error on MSVC 2019 v16.11.18 --- spine-c/spine-c/src/spine/SkeletonBinary.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spine-c/spine-c/src/spine/SkeletonBinary.c b/spine-c/spine-c/src/spine/SkeletonBinary.c index 50c7f3690..406c7f389 100644 --- a/spine-c/spine-c/src/spine/SkeletonBinary.c +++ b/spine-c/spine-c/src/spine/SkeletonBinary.c @@ -128,7 +128,8 @@ static int readVarint(_dataInput *input, int /*bool*/ optimizePositive) { } } } - if (!optimizePositive) value = (((unsigned int) value >> 1) ^ -(value & 1)); + if (!optimizePositive) + value = ((unsigned int) value >> 1) ^ (~(value & 1)); return (int) value; }