From 6f19559de02e0bf2b53e743678d53a4ea0414eae Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 13 Oct 2016 17:51:46 +0200 Subject: Fix some type checks and tests for internal / external function parameters. --- libsolidity/ast/Types.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libsolidity') 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(8 * storageBytes()); } -- cgit