Merge pull request #1370 from ethereum/missing_break

codegen: add a missing `break;`
This commit is contained in:
Alex Beregszaszi 2016-11-14 18:07:48 +00:00 committed by GitHub
commit 54555adb67

View File

@ -666,6 +666,7 @@ void CompilerUtils::convertType(Type const& _typeOnStack, Type const& _targetTyp
solAssert(_targetType == _typeOnStack, "Invalid conversion for bool."); solAssert(_targetType == _typeOnStack, "Invalid conversion for bool.");
if (_cleanupNeeded) if (_cleanupNeeded)
m_context << Instruction::ISZERO << Instruction::ISZERO; m_context << Instruction::ISZERO << Instruction::ISZERO;
break;
default: default:
// All other types should not be convertible to non-equal types. // All other types should not be convertible to non-equal types.
solAssert(_typeOnStack == _targetType, "Invalid type conversion requested."); solAssert(_typeOnStack == _targetType, "Invalid type conversion requested.");