mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1370 from ethereum/missing_break
codegen: add a missing `break;`
This commit is contained in:
commit
54555adb67
@ -666,6 +666,7 @@ void CompilerUtils::convertType(Type const& _typeOnStack, Type const& _targetTyp
|
||||
solAssert(_targetType == _typeOnStack, "Invalid conversion for bool.");
|
||||
if (_cleanupNeeded)
|
||||
m_context << Instruction::ISZERO << Instruction::ISZERO;
|
||||
break;
|
||||
default:
|
||||
// All other types should not be convertible to non-equal types.
|
||||
solAssert(_typeOnStack == _targetType, "Invalid type conversion requested.");
|
||||
|
Loading…
Reference in New Issue
Block a user