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

This commit is contained in:
Alex Beregszaszi
2016-08-08 20:05:31 +01:00
parent c157163441
commit f1df3dee53
3 changed files with 7 additions and 7 deletions
+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) + ")";