diff options
author | Gav Wood <i@gavwood.com> | 2014-05-28 01:11:37 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-05-28 01:11:37 +0800 |
commit | 009b25d043adc8f165de525eecc19702d105c125 (patch) | |
tree | c94ef37e4ae2afa665f80da59709c0c1fe7b0125 | |
parent | 1fdb7a1536209409010c6b6a69aedfce03c8372d (diff) | |
download | dexon-solidity-009b25d043adc8f165de525eecc19702d105c125.tar dexon-solidity-009b25d043adc8f165de525eecc19702d105c125.tar.gz dexon-solidity-009b25d043adc8f165de525eecc19702d105c125.tar.bz2 dexon-solidity-009b25d043adc8f165de525eecc19702d105c125.tar.lz dexon-solidity-009b25d043adc8f165de525eecc19702d105c125.tar.xz dexon-solidity-009b25d043adc8f165de525eecc19702d105c125.tar.zst dexon-solidity-009b25d043adc8f165de525eecc19702d105c125.zip |
Assembler fix.
-rw-r--r-- | Assembly.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ public: template <class T> Assembly& operator<<(T const& _d) { append(_d); return *this; } AssemblyItem const& back() { return m_items.back(); } - std::string backString() const { return m_items.back().m_type == PushString ? m_strings.at((h256)m_items.back().m_data) : std::string(); } + std::string backString() const { return m_items.size() && m_items.back().m_type == PushString ? m_strings.at((h256)m_items.back().m_data) : std::string(); } void onePath() { assert(!m_totalDeposit && !m_baseDeposit); m_baseDeposit = m_deposit; m_totalDeposit = INT_MAX; } void otherPath() { donePath(); m_totalDeposit = m_deposit; m_deposit = m_baseDeposit; } |