mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-5571 fix compilation error on AIX and HP-UX
X-SVN-Rev: 20991
This commit is contained in:
parent
f8c168bc86
commit
2416807bd1
1 changed files with 7 additions and 7 deletions
|
@ -280,10 +280,15 @@ idnaref_toASCII(const UChar* src, int32_t srcLength,
|
|||
UBool srcIsLDH = TRUE;
|
||||
int32_t j=0;
|
||||
|
||||
NamePrepTransform* prep = TestIDNA::getInstance(*status);
|
||||
|
||||
if(U_FAILURE(*status)){
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
if(srcLength == -1){
|
||||
srcLength = u_strlen(src);
|
||||
}
|
||||
|
||||
}
|
||||
if(srcLength > b1Capacity){
|
||||
b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR);
|
||||
if(b1==NULL){
|
||||
|
@ -301,11 +306,6 @@ idnaref_toASCII(const UChar* src, int32_t srcLength,
|
|||
b1[b1Len++] = src[j];
|
||||
}
|
||||
// step 2
|
||||
NamePrepTransform* prep = TestIDNA::getInstance(*status);
|
||||
|
||||
if(U_FAILURE(*status)){
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue