aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-09-27 17:21:24 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-27 17:21:24 +0800
commitdcb61352f6cadac4f036fa39927729781db303c5 (patch)
tree754c1467b235c8d0227314e8bdc41d59fba457db /libsolidity/analysis
parent6db13311dd6d9e9ebb10f6f5b34c5b326f69b390 (diff)
downloaddexon-solidity-dcb61352f6cadac4f036fa39927729781db303c5.tar
dexon-solidity-dcb61352f6cadac4f036fa39927729781db303c5.tar.gz
dexon-solidity-dcb61352f6cadac4f036fa39927729781db303c5.tar.bz2
dexon-solidity-dcb61352f6cadac4f036fa39927729781db303c5.tar.lz
dexon-solidity-dcb61352f6cadac4f036fa39927729781db303c5.tar.xz
dexon-solidity-dcb61352f6cadac4f036fa39927729781db303c5.tar.zst
dexon-solidity-dcb61352f6cadac4f036fa39927729781db303c5.zip
Report correct location for inferred types in packed encoding
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index 4b2ec8d6..66ece478 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -1497,7 +1497,7 @@ bool TypeChecker::visit(FunctionCall const& _functionCall)
/* If no mobile type is available an error will be raised elsewhere. */
if (literal->mobileType())
m_errorReporter.warning(
- _functionCall.location(),
+ arguments[i]->location(),
"The type of \"" +
argType->toString() +
"\" was inferred as " +