mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix conversion during storing.
This commit is contained in:
parent
f58bd5551e
commit
fe9aa59b8f
@ -846,9 +846,9 @@ void CompilerUtils::convertType(
|
|||||||
cleanHigherOrderBits(targetType);
|
cleanHigherOrderBits(targetType);
|
||||||
if (chopSignBitsPending)
|
if (chopSignBitsPending)
|
||||||
{
|
{
|
||||||
if (typeOnStack.numBits() < 256)
|
if (targetType.numBits() < 256)
|
||||||
m_context
|
m_context
|
||||||
<< ((u256(1) << typeOnStack.numBits()) - 1)
|
<< ((u256(1) << targetType.numBits()) - 1)
|
||||||
<< Instruction::AND;
|
<< Instruction::AND;
|
||||||
chopSignBitsPending = false;
|
chopSignBitsPending = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user