mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-08 11:46:53 +08:00
[c] Fix compiler warning/error on MSVC 2019 v16.11.18
This commit is contained in:
parent
b658634785
commit
a50aedd71c
@ -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;
|
return (int) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user