ICU-5691 minor bug fix

X-SVN-Rev: 24770
This commit is contained in:
Markus Scherer 2008-10-10 06:01:08 +00:00
parent b6b3273af0
commit e10cfeebfe

View File

@ -2603,8 +2603,7 @@ ucnv_MBCSToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs,
&offsets, sourceIndex,
pArgs->flush,
pErrorCode);
/* TODO: nextSourceIndex+=diff instead of nextSourceIndex+diff ?? */
sourceIndex=nextSourceIndex+(int32_t)(source-(const uint8_t *)pArgs->source);
sourceIndex=nextSourceIndex+=(int32_t)(source-(const uint8_t *)pArgs->source);
if(U_FAILURE(*pErrorCode)) {
/* not mappable or buffer overflow */