From f1df3dee537e827bc4f74ed92ab8a58cd4cf2ac0 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 8 Aug 2016 19:12:52 +0100 Subject: Use size_t in dev::utf8::validate() --- libsolidity/ast/Types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity') diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index d6f6225c..aae18934 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -855,7 +855,7 @@ bool StringLiteralType::operator==(const Type& _other) const std::string StringLiteralType::toString(bool) const { - int invalidSequence; + size_t invalidSequence; if (!dev::utf8::validate(m_value, invalidSequence)) return "literal_string (contains invalid UTF-8 sequence at position " + dev::toString(invalidSequence) + ")"; -- cgit v1.2.3