From 80eec8b308e8af3b742e3da47ded927e4e4b388d Mon Sep 17 00:00:00 2001 From: arkpar Date: Tue, 13 Jan 2015 11:18:08 +0100 Subject: fixed warnings for msvc build --- CompilerContext.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CompilerContext.h') 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. -- cgit