aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-31 17:07:10 +0800
committerLiana Husikyan <liana@ethdev.com>2015-04-08 21:56:35 +0800
commitdf3ce3ad8f365ab7842823f4694490ad80a651c5 (patch)
tree45473f8b8cb807269abeba64199124bd7e58b0bc /Types.cpp
parent7eec25b6eb07f1549725884221402a6e692b46e1 (diff)
downloaddexon-solidity-df3ce3ad8f365ab7842823f4694490ad80a651c5.tar.gz
dexon-solidity-df3ce3ad8f365ab7842823f4694490ad80a651c5.tar.zst
dexon-solidity-df3ce3ad8f365ab7842823f4694490ad80a651c5.zip
some more tests
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Types.cpp b/Types.cpp
index 0c80a0f7..9a5b120b 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -1002,17 +1002,17 @@ FunctionType::FunctionType(VariableDeclaration const& _varDecl):
retParamNames.push_back(member.first);
retParams.push_back(member.second);
}
- } else
- if (auto arrayType = dynamic_cast<ArrayType const*>(returnType.get()))
- {
- params.push_back(make_shared<IntegerType>(256));
- paramNames.push_back("");
- returnType = arrayType->getBaseType();
- } else
- {
- retParams.push_back(returnType);
- retParamNames.push_back("");
- }
+ } else if (auto arrayType = dynamic_cast<ArrayType const*>(returnType.get()))
+ {
+ params.push_back(make_shared<IntegerType>(256));
+ paramNames.push_back("");
+ returnType = arrayType->getBaseType();
+ }
+ else
+ {
+ retParams.push_back(returnType);
+ retParamNames.push_back("");
+ }
swap(params, m_parameterTypes);
swap(paramNames, m_parameterNames);