diff options
author | Christian <c@ethdev.com> | 2015-02-23 01:38:32 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-02-23 02:16:40 +0800 |
commit | e7528c6af8a9b313b4bb20358c939f16b693e9cb (patch) | |
tree | 6564c2023a8bd2a315d69db3d55cca89c3000ae8 /CompilerContext.h | |
parent | c62828c8ff8248d0b7f714d4334d5a1c41b028e2 (diff) | |
download | dexon-solidity-e7528c6af8a9b313b4bb20358c939f16b693e9cb.tar.gz dexon-solidity-e7528c6af8a9b313b4bb20358c939f16b693e9cb.tar.zst dexon-solidity-e7528c6af8a9b313b4bb20358c939f16b693e9cb.zip |
Stack height checks and fix.
Diffstat (limited to 'CompilerContext.h')
-rw-r--r-- | CompilerContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CompilerContext.h b/CompilerContext.h index f202d7f4..da2e7f4f 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -48,7 +48,7 @@ public: bytes const& getCompiledContract(ContractDefinition const& _contract) const; void adjustStackOffset(int _adjustment) { m_asm.adjustDeposit(_adjustment); } - unsigned getStackHeight() { solAssert(m_asm.deposit() >= 0, ""); return unsigned(m_asm.deposit()); } + unsigned getStackHeight() const { solAssert(m_asm.deposit() >= 0, ""); return unsigned(m_asm.deposit()); } bool isMagicGlobal(Declaration const* _declaration) const { return m_magicGlobals.count(_declaration) != 0; } bool isLocalVariable(Declaration const* _declaration) const; |