Fix conversion during storing.

This commit is contained in:
chriseth 2019-06-25 12:02:38 +02:00
parent f58bd5551e
commit fe9aa59b8f

View File

@ -846,9 +846,9 @@ void CompilerUtils::convertType(
cleanHigherOrderBits(targetType);
if (chopSignBitsPending)
{
if (typeOnStack.numBits() < 256)
if (targetType.numBits() < 256)
m_context
<< ((u256(1) << typeOnStack.numBits()) - 1)
<< ((u256(1) << targetType.numBits()) - 1)
<< Instruction::AND;
chopSignBitsPending = false;
}