diff options
author | Neil <nyamatongwe@gmail.com> | 2022-08-13 18:12:55 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-08-13 18:12:55 +1000 |
commit | 7d2f6bd5280613538c4beafac26a39348992d103 (patch) | |
tree | 3da3b4dc503778ef6ce45da0477bcfdafd127160 /src/UniConversion.cxx | |
parent | 059594717cb36423733a0fbdee316f436d2e49a0 (diff) | |
download | scintilla-mirror-7d2f6bd5280613538c4beafac26a39348992d103.tar.gz |
Reduce warnings with noexcept, fewer casts, and other minor changes.
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); } |