aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-11-22 04:42:19 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-12-19 20:35:00 +0800
commit517beb6fa63dd86d952aef900479a249019a2e7c (patch)
tree810fe93d5ee9f31b0b7b17e1f14f05c4b264cf74 /libevmasm
parent8875092073a30c94659f8a373658ca8286803054 (diff)
downloaddexon-solidity-517beb6fa63dd86d952aef900479a249019a2e7c.tar.gz
dexon-solidity-517beb6fa63dd86d952aef900479a249019a2e7c.tar.zst
dexon-solidity-517beb6fa63dd86d952aef900479a249019a2e7c.zip
Use explicit break and do not coerce 0 into bool in AssemblyItem
Diffstat (limited to 'libevmasm')
-rw-r--r--libevmasm/AssemblyItem.cpp8
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