mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 04:29:31 +00:00
ICU-200 Updated with OS/400 specific port changes.
X-SVN-Rev: 460
This commit is contained in:
parent
16ac11f546
commit
16429edff1
1 changed files with 9 additions and 8 deletions
|
@ -843,15 +843,16 @@ int32_t ucnv_toUChars (const UConverter * converter,
|
|||
/*Removes all state info on the UConverter */
|
||||
ucnv_reset (&myConverter);
|
||||
|
||||
myTarget_limit = target + targetSize - 1;
|
||||
|
||||
if(myTarget_limit < target) /*if targetsize is such that the limit*/
|
||||
myTarget_limit = ((UChar*)U_MAX_PTR) - 1; /* would wrap around, truncate it. */
|
||||
|
||||
|
||||
/*Not in pure pre-flight mode */
|
||||
if (targetSize > 0)
|
||||
{
|
||||
{
|
||||
myTarget_limit = target + targetSize - 1;
|
||||
/*if targetsize is such that the limit*/
|
||||
if (myTarget_limit < target) {
|
||||
/* would wrap around, truncate it. */
|
||||
myTarget_limit = ((UChar*)U_MAX_PTR) - 1;
|
||||
}
|
||||
|
||||
/*Not in pure pre-flight mode */
|
||||
|
||||
ucnv_toUnicode (&myConverter,
|
||||
&myTarget,
|
||||
|
|
Loading…
Add table
Reference in a new issue