]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/ucnv_ct.cpp
ICU-62108.0.1.tar.gz
[apple/icu.git] / icuSources / common / ucnv_ct.cpp
index c9a0ce36930ec91cfcffddf2ac0e83839f123ac5..51e31aa4116bd3817bc73320d1695e6d117848f0 100644 (file)
@@ -315,6 +315,7 @@ _CompoundTextClose(UConverter *converter) {
         }
 
         uprv_free(converter->extraInfo);
+        converter->extraInfo = NULL;
     }
 }
 
@@ -519,7 +520,7 @@ UConverter_toUnicode_CompoundText_OFFSETS(UConverterToUnicodeArgs *args,
                     currentState = tmpState;
                 }
 
-                sourceOffset = uprv_strlen((char*)escSeqCompoundText[currentState]) - args->converter->toULength;
+                sourceOffset = static_cast<int32_t>(uprv_strlen((char*)escSeqCompoundText[currentState]) - args->converter->toULength);
 
                 mySource += sourceOffset;