diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-09 21:00:12 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-09 21:00:12 +0800 |
commit | 6f621f8486ca6685b29008cb66ea6a819d7c91dc (patch) | |
tree | 32cca3cea5809732c55a2da23587e238d554049c /Compiler.cpp | |
parent | 75a5c20f541a7dc41f80bdb3b4fe3478d18ad4fe (diff) | |
download | dexon-solidity-6f621f8486ca6685b29008cb66ea6a819d7c91dc.tar dexon-solidity-6f621f8486ca6685b29008cb66ea6a819d7c91dc.tar.gz dexon-solidity-6f621f8486ca6685b29008cb66ea6a819d7c91dc.tar.bz2 dexon-solidity-6f621f8486ca6685b29008cb66ea6a819d7c91dc.tar.lz dexon-solidity-6f621f8486ca6685b29008cb66ea6a819d7c91dc.tar.xz dexon-solidity-6f621f8486ca6685b29008cb66ea6a819d7c91dc.tar.zst dexon-solidity-6f621f8486ca6685b29008cb66ea6a819d7c91dc.zip |
Changing Solidity Code to use CamelCase enum values
Diffstat (limited to 'Compiler.cpp')
-rw-r--r-- | Compiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Compiler.cpp b/Compiler.cpp index 389f826b..b3615367 100644 --- a/Compiler.cpp +++ b/Compiler.cpp @@ -189,7 +189,7 @@ unsigned Compiler::appendCalldataUnpacker(TypePointers const& _typeParameters, b if (c_numBytes > 32) BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Type " + type->toString() + " not yet supported.")); - bool const c_leftAligned = type->getCategory() == Type::Category::STRING; + bool const c_leftAligned = type->getCategory() == Type::Category::String; bool const c_padToWords = true; dataOffset += CompilerUtils(m_context).loadFromMemory(dataOffset, c_numBytes, c_leftAligned, !_fromMemory, c_padToWords); @@ -213,7 +213,7 @@ void Compiler::appendReturnValuePacker(TypePointers const& _typeParameters) << errinfo_comment("Type " + type->toString() + " not yet supported.")); CompilerUtils(m_context).copyToStackTop(stackDepth, *type); ExpressionCompiler::appendTypeConversion(m_context, *type, *type, true); - bool const c_leftAligned = type->getCategory() == Type::Category::STRING; + bool const c_leftAligned = type->getCategory() == Type::Category::String; bool const c_padToWords = true; dataOffset += CompilerUtils(m_context).storeInMemory(dataOffset, numBytes, c_leftAligned, c_padToWords); stackDepth -= type->getSizeOnStack(); |