From 7d2f6bd5280613538c4beafac26a39348992d103 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 13 Aug 2022 18:12:55 +1000 Subject: Reduce warnings with noexcept, fewer casts, and other minor changes. --- src/UniConversion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/UniConversion.h') diff --git a/src/UniConversion.h b/src/UniConversion.h index 95ff2ad43..a21a020c3 100644 --- a/src/UniConversion.h +++ b/src/UniConversion.h @@ -65,7 +65,7 @@ inline int UTF8Classify(std::string_view sv) noexcept { // Similar to UTF8Classify but returns a length of 1 for invalid bytes // instead of setting the invalid flag -int UTF8DrawBytes(const unsigned char *us, int len) noexcept; +int UTF8DrawBytes(const char *s, size_t len) noexcept; // Line separator is U+2028 \xe2\x80\xa8 // Paragraph separator is U+2029 \xe2\x80\xa9 -- cgit v1.2.3