From 517beb6fa63dd86d952aef900479a249019a2e7c Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 21 Nov 2018 20:42:19 +0000 Subject: [PATCH] Use explicit break and do not coerce 0 into bool in AssemblyItem --- libevmasm/AssemblyItem.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libevmasm/AssemblyItem.cpp b/libevmasm/AssemblyItem.cpp index be3b10269..0043f76b6 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