aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-23 01:38:32 +0800
committerChristian <c@ethdev.com>2015-02-23 02:16:40 +0800
commite7528c6af8a9b313b4bb20358c939f16b693e9cb (patch)
tree6564c2023a8bd2a315d69db3d55cca89c3000ae8 /CompilerContext.h
parentc62828c8ff8248d0b7f714d4334d5a1c41b028e2 (diff)
downloaddexon-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.h2
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;