From 261e4529ceb56bd8a0ab00c5505174968f0ff245 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 23 Dec 2008 11:33:11 +0000 Subject: Avoid warnings with gcc 4.3 --- src/UniConversion.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/UniConversion.cxx') diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx index 863eb82cd..7dbe9e23d 100644 --- a/src/UniConversion.cxx +++ b/src/UniConversion.cxx @@ -48,7 +48,7 @@ void UTF8FromUTF16(const wchar_t *uptr, unsigned int tlen, char *putf, unsigned i++; unsigned int xch = 0x10000 + ((uch & 0x3ff) << 10) + (uptr[i] & 0x3ff); putf[k++] = static_cast(0xF0 | (xch >> 18)); - putf[k++] = static_cast(0x80 | (xch >> 12) & 0x3f); + putf[k++] = static_cast(0x80 | ((xch >> 12) & 0x3f)); putf[k++] = static_cast(0x80 | ((xch >> 6) & 0x3f)); putf[k++] = static_cast(0x80 | (xch & 0x3f)); } else { -- cgit v1.2.3