mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix for bug about deleting dynamic array of structs.
This commit is contained in:
parent
82175fbd2b
commit
35ffcac35b
@ -759,7 +759,7 @@ void ArrayUtils::clearStorageLoop(Type const& _type) const
|
||||
StorageItem(m_context, _type).setToZero(SourceLocation(), false);
|
||||
m_context << Instruction::POP;
|
||||
// increment
|
||||
m_context << u256(1) << Instruction::ADD;
|
||||
m_context << _type.storageSize() << Instruction::ADD;
|
||||
m_context.appendJumpTo(loopStart);
|
||||
// cleanup
|
||||
m_context << zeroLoopEnd;
|
||||
|
Loading…
Reference in New Issue
Block a user