diff options
author | Neil <nyamatongwe@gmail.com> | 2015-02-24 09:30:42 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-02-24 09:30:42 +1100 |
commit | 59a6f6fd788f0491a26f4e39ab536ee5e5be87ea (patch) | |
tree | 0af3920a1c0a91e44cdfc4852c344d678e69b401 /src/UniConversion.cxx | |
parent | c194249102cea0df80bcbe2d154dfb4bc582aa10 (diff) | |
download | scintilla-mirror-59a6f6fd788f0491a26f4e39ab536ee5e5be87ea.tar.gz |
Notify container of non-BMP characters correctly.
Diffstat (limited to 'src/UniConversion.cxx')
-rw-r--r-- | src/UniConversion.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx index 0d69d9969..04053b057 100644 --- a/src/UniConversion.cxx +++ b/src/UniConversion.cxx @@ -145,7 +145,7 @@ unsigned int UTF32FromUTF8(const char *s, unsigned int len, unsigned int *tbuf, unsigned int i=0; while ((i<len) && (ui<tlen)) { unsigned char ch = us[i++]; - wchar_t value = 0; + unsigned int value = 0; if (ch < 0x80) { value = ch; } else if (((len-i) >= 1) && (ch < 0x80 + 0x40 + 0x20)) { |