Use size_t in dev::utf8::validate()

This commit is contained in:
Alex Beregszaszi committed 2016-08-08 20:05:31 +01:00
1 parent c157163441
commit f1df3dee53
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -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) + ")";