diff options
author | chriseth <chris@ethereum.org> | 2018-12-19 22:14:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-19 22:14:49 +0800 |
commit | ef59f35a14c6eea65b15ac78db06befb182907c1 (patch) | |
tree | 0dff5e6c53970d02aca07fbadac65edbdd5467b9 /libevmasm | |
parent | c8f20e075f46ce35a9975f43676dbe1794d7ea29 (diff) | |
parent | 517beb6fa63dd86d952aef900479a249019a2e7c (diff) | |
download | dexon-solidity-ef59f35a14c6eea65b15ac78db06befb182907c1.tar.gz dexon-solidity-ef59f35a14c6eea65b15ac78db06befb182907c1.tar.zst dexon-solidity-ef59f35a14c6eea65b15ac78db06befb182907c1.zip |
Merge pull request #5693 from ethereum/assemblyitem
Use explicit break and do not coerce 0 into bool in AssemblyItem
Diffstat (limited to 'libevmasm')
-rw-r--r-- | libevmasm/AssemblyItem.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libevmasm/AssemblyItem.cpp b/libevmasm/AssemblyItem.cpp index be3b1026..0043f76b 100644 --- a/libevmasm/AssemblyItem.cpp +++ b/libevmasm/AssemblyItem.cpp @@ -110,7 +110,8 @@ int AssemblyItem::returnValues() const return 1; case Tag: return 0; - default:; + default: + break; } return 0; } @@ -135,9 +136,10 @@ bool AssemblyItem::canBeFunctional() const return true; case Tag: return false; - default:; + default: + break; } - return 0; + return false; } string AssemblyItem::getJumpTypeAsString() const |