From c86b3b016eb6ab5180688504e6d3a64ceb752c4e Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 16 Feb 2002 09:38:42 +0000 Subject: [PATCH] build failure --- panda/src/text/textNode.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/panda/src/text/textNode.cxx b/panda/src/text/textNode.cxx index 15b4988055..ed0362d5f8 100644 --- a/panda/src/text/textNode.cxx +++ b/panda/src/text/textNode.cxx @@ -414,13 +414,13 @@ encode_wchar(wchar_t ch) const { return string(1, (char)ch); } else if (ch < 0x800) { return - string(1, (char)(ch >> 6) | 0xc0) + - string(1, (char)(ch & 0x3f) | 0x80); + string(1, (char)((ch >> 6) | 0xc0)) + + string(1, (char)((ch & 0x3f) | 0x80)); } else { return - string(1, (char)(ch >> 12) | 0xe0) + - string(1, (char)((ch >> 6) & 0x3f) | 0x80) + - string(1, (char)(ch & 0x3f) | 0x80); + string(1, (char)((ch >> 12) | 0xe0)) + + string(1, (char)(((ch >> 6) & 0x3f) | 0x80)) + + string(1, (char)((ch & 0x3f) | 0x80)); } case E_unicode: @@ -428,6 +428,8 @@ encode_wchar(wchar_t ch) const { string(1, (char)(ch >> 8)) + string(1, (char)(ch & 0xff)); } + + return ""; } ////////////////////////////////////////////////////////////////////