mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Minor changes from review.
This commit is contained in:
@@ -86,7 +86,6 @@ public:
|
||||
|
||||
AssemblyItemType type() const { return m_type; }
|
||||
u256 const& data() const { assertThrow(m_type != Operation, Exception, ""); return *m_data; }
|
||||
//void setType(AssemblyItemType const _type) { m_type = _type; }
|
||||
void setData(u256 const& _data) { assertThrow(m_type != Operation, Exception, ""); m_data = std::make_shared<u256>(_data); }
|
||||
|
||||
/// @returns the instruction of this item (only valid if type() == Operation)
|
||||
|
||||
@@ -60,7 +60,7 @@ unsigned ConstantOptimisationMethod::optimiseConstants(
|
||||
replacement = copy.execute(_assembly);
|
||||
optimisations++;
|
||||
}
|
||||
else if (computeGas < literalGas && computeGas < copyGas)
|
||||
else if (computeGas < literalGas && computeGas <= copyGas)
|
||||
{
|
||||
replacement = compute.execute(_assembly);
|
||||
optimisations++;
|
||||
|
||||
Reference in New Issue
Block a user