mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-06-04 11:25:44 +08:00
Merge pull request #266 from google/spec_remove_static_cast
Spec: Remove static_cast
This commit is contained in:
commit
0ec5ed3380
@ -5,7 +5,7 @@
|
||||
|
||||
~~~~~
|
||||
int ConvertSymbolToSignedInt(val) {
|
||||
is_positive = !static_cast<bool>(val & 1);
|
||||
is_positive = !(val & 1);
|
||||
val >>= 1;
|
||||
if (is_positive) {
|
||||
return val;
|
||||
|
Loading…
x
Reference in New Issue
Block a user