mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5693 from ethereum/assemblyitem
Use explicit break and do not coerce 0 into bool in AssemblyItem
This commit is contained in:
commit
ef59f35a14
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user