Spec: Remove static_cast

- Addresses a comment in KhronosGroup/glTF#1114
This commit is contained in:
Frank Galligan 2017-10-25 09:26:46 -07:00
parent c068f6fc57
commit ad6ae01e23

View File

@ -5,7 +5,7 @@
~~~~~ ~~~~~
int ConvertSymbolToSignedInt(val) { int ConvertSymbolToSignedInt(val) {
is_positive = !static_cast<bool>(val & 1); is_positive = !(val & 1);
val >>= 1; val >>= 1;
if (is_positive) { if (is_positive) {
return val; return val;