]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/ustrtrns.c
ICU-400.37.tar.gz
[apple/icu.git] / icuSources / common / ustrtrns.c
index 1801d8aeb64afe30bb9bb9358a751708f92730b7..5f013c10063b1e3851a1e384917309e121936f1e 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 2001-2006, International Business Machines
+*   Copyright (C) 2001-2007, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
@@ -839,7 +839,7 @@ u_strFromUTF8Lenient(UChar *dest,
             } else if(ch < 0xe0) { /* U+0080..U+07FF */
                 if(pSrc < pSrcLimit) {
                     /* 0x3080 = (0xc0 << 6) + 0x80 */
-                    *pDest++ = (UChar)(((ch & 0x1f) << 6) + *pSrc++ - 0x3080);
+                    *pDest++ = (UChar)((ch << 6) + *pSrc++ - 0x3080);
                     continue;
                 }
             } else if(ch < 0xf0) { /* U+0800..U+FFFF */