aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-07 03:57:04 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-07 03:57:04 +0800
commitafe1d9a592446dd403b9ed349529098b71309756 (patch)
tree61e086cac063ea0461d094160729d3d9641ea31b /ExpressionCompiler.cpp
parentf6586b81398d7670fc8a99b80e0d6342179e1907 (diff)
downloaddexon-solidity-afe1d9a592446dd403b9ed349529098b71309756.tar.gz
dexon-solidity-afe1d9a592446dd403b9ed349529098b71309756.tar.zst
dexon-solidity-afe1d9a592446dd403b9ed349529098b71309756.zip
Small fixes in Types and ExpressionCompiler
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 0ce19ecd..cd133222 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -860,8 +860,8 @@ unsigned ExpressionCompiler::appendArgumentsCopyToMemory(vector<ASTPointer<Expre
unsigned ExpressionCompiler::moveTypeToMemory(Type const& _type, Location const& _location, unsigned _memoryOffset, bool _padToWordBoundaries)
{
- unsigned const encodedSize = _type.getCalldataEncodedSize();
- unsigned const c_numBytes = _padToWordBoundaries ? CompilerUtils::getPaddedSize(encodedSize) : encodedSize;
+ unsigned const c_encodedSize = _type.getCalldataEncodedSize();
+ unsigned const c_numBytes = _padToWordBoundaries ? CompilerUtils::getPaddedSize(c_encodedSize) : c_encodedSize;
if (c_numBytes == 0 || c_numBytes > 32)
BOOST_THROW_EXCEPTION(CompilerError()
<< errinfo_sourceLocation(_location)