]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/ucnvlat1.c
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / common / ucnvlat1.c
index 54140ec92bd8cacf71906251edca38fb918f55d7..202f8aabeda37697d2d53f08ce801412de1e3b5e 100644 (file)
@@ -1,6 +1,6 @@
 /* 
 **********************************************************************
-*   Copyright (C) 2000-2011, International Business Machines
+*   Copyright (C) 2000-2012, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 *   file name:  ucnvlat1.cpp
@@ -406,7 +406,7 @@ ucnv_Latin1FromUTF8(UConverterFromUnicodeArgs *pFromUArgs,
     if(U_SUCCESS(*pErrorCode) && source<(sourceLimit=(uint8_t *)pToUArgs->sourceLimit)) {
         utf8->toUnicodeStatus=utf8->toUBytes[0]=b=*source++;
         utf8->toULength=1;
-        utf8->mode=utf8_countTrailBytes[b]+1;
+        utf8->mode=U8_COUNT_TRAIL_BYTES(b)+1;
     }
 
     /* write back the updated pointers */