aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST.cpp b/AST.cpp
index c4fd7e2d..39ba10f3 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -502,7 +502,7 @@ void FunctionCall::checkTypeRequirements()
#endif
if (!m_arguments[i]->getType()->isImplicitlyConvertibleTo(*parameterTypes[0]))
BOOST_THROW_EXCEPTION(createTypeError(std::string("SHA3 argument ") +
- boost::lexical_cast<std::string>(i) +
+ boost::lexical_cast<std::string>(i + 1) +
std::string("can't be converted to hash")));
} else if (!m_arguments[i]->getType()->isImplicitlyConvertibleTo(*parameterTypes[i]))