diff options
author | arkpar <arkady.paronyan@gmail.com> | 2015-01-13 18:18:08 +0800 |
---|---|---|
committer | arkpar <arkady.paronyan@gmail.com> | 2015-01-13 18:18:08 +0800 |
commit | 80eec8b308e8af3b742e3da47ded927e4e4b388d (patch) | |
tree | db9bf42fd469fc4ee5707ddf374d8dc28e61bbc5 /CompilerContext.h | |
parent | 24a2335c01fa2d0baeda97b795a9bf8b05b6529d (diff) | |
download | dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.tar.gz dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.tar.zst dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.zip |
fixed warnings for msvc build
Diffstat (limited to 'CompilerContext.h')
-rw-r--r-- | CompilerContext.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CompilerContext.h b/CompilerContext.h index 795f447a..14672c95 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -51,10 +51,10 @@ public: void adjustStackOffset(int _adjustment) { m_asm.adjustDeposit(_adjustment); } - bool isMagicGlobal(Declaration const* _declaration) const { return m_magicGlobals.count(_declaration); } - bool isFunctionDefinition(Declaration const* _declaration) const { return m_functionEntryLabels.count(_declaration); } + bool isMagicGlobal(Declaration const* _declaration) const { return m_magicGlobals.count(_declaration) != 0; } + bool isFunctionDefinition(Declaration const* _declaration) const { return m_functionEntryLabels.count(_declaration) != 0; } bool isLocalVariable(Declaration const* _declaration) const; - bool isStateVariable(Declaration const* _declaration) const { return m_stateVariables.count(_declaration); } + bool isStateVariable(Declaration const* _declaration) const { return m_stateVariables.count(_declaration) != 0; } eth::AssemblyItem getFunctionEntryLabel(FunctionDefinition const& _function) const; /// Returns the distance of the given local variable from the top of the local variable stack. |