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
commit ef59f35a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,8 @@ int AssemblyItem::returnValues() const
return 1; return 1;
case Tag: case Tag:
return 0; return 0;
default:; default:
break;
} }
return 0; return 0;
} }
@ -135,9 +136,10 @@ bool AssemblyItem::canBeFunctional() const
return true; return true;
case Tag: case Tag:
return false; return false;
default:; default:
break;
} }
return 0; return false;
} }
string AssemblyItem::getJumpTypeAsString() const string AssemblyItem::getJumpTypeAsString() const