diff options
Diffstat (limited to 'src/UniConversion.cxx')
-rw-r--r-- | src/UniConversion.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx index 91aea6cde..3f3bc5904 100644 --- a/src/UniConversion.cxx +++ b/src/UniConversion.cxx @@ -358,8 +358,8 @@ int UTF8Classify(const unsigned char *us, size_t len) noexcept { return UTF8MaskInvalid | 1; } -int UTF8DrawBytes(const unsigned char *us, int len) noexcept { - const int utf8StatusNext = UTF8Classify(us, len); +int UTF8DrawBytes(const char *s, size_t len) noexcept { + const int utf8StatusNext = UTF8Classify(reinterpret_cast<const unsigned char *>(s), len); return (utf8StatusNext & UTF8MaskInvalid) ? 1 : (utf8StatusNext & UTF8MaskWidth); } |