diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 03:31:25 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 03:31:25 +0000 |
commit | 1bad33fa978ae87e0c0150b1d5a95e0a20b05e92 (patch) | |
tree | 9df2f780f6cdb5bb2425a351deec13571e0594a0 | |
parent | a588a6c1bfeb205b9064b0c9cfd406ba48fa885f (diff) |
INTEGRATION: CWS warnings01 (1.4.180); FILE MERGED
2005/09/23 01:31:41 sb 1.4.180.2: RESYNC: (1.4-1.5); FILE MERGED
2005/09/20 12:57:23 sb 1.4.180.1: #i53898# Globally disable problematic warnings.
-rw-r--r-- | sal/rtl/source/ustrbuf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/rtl/source/ustrbuf.c b/sal/rtl/source/ustrbuf.c index 3dc56ca35..c3e441c7e 100644 --- a/sal/rtl/source/ustrbuf.c +++ b/sal/rtl/source/ustrbuf.c @@ -4,9 +4,9 @@ * * $RCSfile: ustrbuf.c,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-08 16:07:18 $ + * last change: $Author: hr $ $Date: 2006-06-20 04:31:25 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -164,12 +164,12 @@ void rtl_uStringbuffer_insertUtf32( sal_Int32 len; OSL_ASSERT(c <= 0x10FFFF && !(c >= 0xD800 && c <= 0xDFFF)); if (c <= 0xFFFF) { - buf[0] = c; + buf[0] = (sal_Unicode) c; len = 1; } else { c -= 0x10000; - buf[0] = (c >> 10) | 0xD800; - buf[1] = (c & 0x3FF) | 0xDC00; + buf[0] = (sal_Unicode) ((c >> 10) | 0xD800); + buf[1] = (sal_Unicode) ((c & 0x3FF) | 0xDC00); len = 2; } rtl_uStringbuffer_insert(pThis, capacity, offset, buf, len); |