mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-11 16:28:59 +08:00
Spec: Remove static_cast
- Addresses a comment in KhronosGroup/glTF#1114
This commit is contained in:
parent
c068f6fc57
commit
ad6ae01e23
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user