aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-10-13 23:51:46 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:17 +0800
commit6f19559de02e0bf2b53e743678d53a4ea0414eae (patch)
treed1b3c7532e06b6a2aa93a4bf61b9cb7b250542bc /libsolidity
parent97a3588701edafe9112f35272b5d4c6e23e574b9 (diff)
downloaddexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.tar
dexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.tar.gz
dexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.tar.bz2
dexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.tar.lz
dexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.tar.xz
dexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.tar.zst
dexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.zip
Fix some type checks and tests for internal / external function parameters.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/Types.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 19a1b9d1..3afbee13 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -2075,12 +2075,12 @@ TypePointer FunctionType::encodingType() const
return TypePointer();
}
-TypePointer FunctionType::interfaceType(bool _inLibrary) const
+TypePointer FunctionType::interfaceType(bool /*_inLibrary*/) const
{
if (m_location != Location::External && m_location != Location::Internal)
return TypePointer();
- if (_inLibrary)
- return shared_from_this();
+ if (m_location != Location::External)
+ return TypePointer();
else
return make_shared<IntegerType>(8 * storageBytes());
}