mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use explicit break and do not coerce 0 into bool in AssemblyItem
This commit is contained in:
parent
8875092073
commit
517beb6fa6
@ -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