Merge pull request #5693 from ethereum/assemblyitem

Use explicit break and do not coerce 0 into bool in AssemblyItem
This commit is contained in:
chriseth
2018-12-19 15:14:49 +01:00
committed by GitHub
+5 -3
View File
@@ -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