aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.cpp
diff options
context:
space:
mode:
authorarkpar <arkady.paronyan@gmail.com>2015-01-13 18:18:08 +0800
committerarkpar <arkady.paronyan@gmail.com>2015-01-13 18:18:08 +0800
commit80eec8b308e8af3b742e3da47ded927e4e4b388d (patch)
treedb9bf42fd469fc4ee5707ddf374d8dc28e61bbc5 /CompilerContext.cpp
parent24a2335c01fa2d0baeda97b795a9bf8b05b6529d (diff)
downloaddexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.tar
dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.tar.gz
dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.tar.bz2
dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.tar.lz
dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.tar.xz
dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.tar.zst
dexon-solidity-80eec8b308e8af3b742e3da47ded927e4e4b388d.zip
fixed warnings for msvc build
Diffstat (limited to 'CompilerContext.cpp')
-rw-r--r--CompilerContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CompilerContext.cpp b/CompilerContext.cpp
index 18357bf0..5d10a5f9 100644
--- a/CompilerContext.cpp
+++ b/CompilerContext.cpp
@@ -53,8 +53,8 @@ void CompilerContext::addAndInitializeVariable(VariableDeclaration const& _decla
{
addVariable(_declaration);
- unsigned const size = _declaration.getType()->getSizeOnStack();
- for (unsigned i = 0; i < size; ++i)
+ int const size = _declaration.getType()->getSizeOnStack();
+ for (int i = 0; i < size; ++i)
*this << u256(0);
m_asm.adjustDeposit(-size);
}