Merge pull request #266 from google/spec_remove_static_cast

Spec: Remove static_cast
This commit is contained in:
FrankGalligan 2017-10-25 09:28:08 -07:00 committed by GitHub
commit 0ec5ed3380

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;