diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-27 15:23:07 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-27 15:23:07 +1000 |
| commit | 7c7f3f2dabae6a2d0da35480549db3a6c314f21b (patch) | |
| tree | 423f65ea2a040db895b15ef8079509e75ea42e1a /src/UniConversion.h | |
| parent | b0ed4ecb6f89b941ba274ef6672564ff27fc7bb5 (diff) | |
| download | scintilla-mirror-7c7f3f2dabae6a2d0da35480549db3a6c314f21b.tar.gz | |
Avoid reinterpret_cast. Use size_t argument to UTF8Classify to avoid casts.
Diffstat (limited to 'src/UniConversion.h')
| -rw-r--r-- | src/UniConversion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UniConversion.h b/src/UniConversion.h index bece53f4d..4cdfe1fac 100644 --- a/src/UniConversion.h +++ b/src/UniConversion.h @@ -47,7 +47,7 @@ inline bool UTF8IsAscii(int ch) noexcept { } enum { UTF8MaskWidth=0x7, UTF8MaskInvalid=0x8 }; -int UTF8Classify(const unsigned char *us, int len) noexcept; +int UTF8Classify(const unsigned char *us, size_t len) noexcept; // Similar to UTF8Classify but returns a length of 1 for invalid bytes // instead of setting the invalid flag |
