ICU-2699 Fixed some compiler warnings
X-SVN-Rev: 11728
This commit is contained in:
parent
9dbfa5f995
commit
2adf6bbb4c
@ -163,8 +163,8 @@ uidna_toASCII(const UChar* src, int32_t srcLength,
|
||||
int32_t j=0;
|
||||
|
||||
//get the options
|
||||
UBool allowUnassigned = options & UIDNA_ALLOW_UNASSIGNED;
|
||||
UBool useSTD3ASCIIRules = (options & UIDNA_USE_STD3_RULES) >>1;
|
||||
UBool allowUnassigned = (UBool)((options & UIDNA_ALLOW_UNASSIGNED) != 0);
|
||||
UBool useSTD3ASCIIRules = (UBool)((options & UIDNA_USE_STD3_RULES) != 0);
|
||||
|
||||
int32_t failPos = -1;
|
||||
// step 2
|
||||
@ -315,8 +315,8 @@ uidna_toUnicode(const UChar* src, int32_t srcLength,
|
||||
}
|
||||
|
||||
//get the options
|
||||
UBool allowUnassigned = options & UIDNA_ALLOW_UNASSIGNED;
|
||||
UBool useSTD3ASCIIRules = (options & UIDNA_USE_STD3_RULES) >>1;
|
||||
UBool allowUnassigned = (UBool)((options & UIDNA_ALLOW_UNASSIGNED) != 0);
|
||||
UBool useSTD3ASCIIRules = (UBool)((options & UIDNA_USE_STD3_RULES) != 0);
|
||||
|
||||
UChar b1Stack[MAX_LABEL_BUFFER_SIZE], b2Stack[MAX_LABEL_BUFFER_SIZE], b3Stack[MAX_LABEL_BUFFER_SIZE];
|
||||
|
||||
@ -514,8 +514,8 @@ uidna_IDNToASCII( const UChar *src, int32_t srcLength,
|
||||
}
|
||||
|
||||
//get the options
|
||||
UBool allowUnassigned = options & UIDNA_ALLOW_UNASSIGNED;
|
||||
UBool useSTD3ASCIIRules = (options & UIDNA_USE_STD3_RULES) >>1;
|
||||
UBool allowUnassigned = (UBool)((options & UIDNA_ALLOW_UNASSIGNED) != 0);
|
||||
UBool useSTD3ASCIIRules = (UBool)((options & UIDNA_USE_STD3_RULES) != 0);
|
||||
|
||||
UChar *start=NULL, *limit=NULL;
|
||||
|
||||
|
@ -262,8 +262,8 @@ idnaref_toASCII(const UChar* src, int32_t srcLength,
|
||||
reqLength=0;
|
||||
|
||||
//get the options
|
||||
UBool allowUnassigned = options & IDNAREF_ALLOW_UNASSIGNED;
|
||||
UBool useSTD3ASCIIRules = (options & IDNAREF_USE_STD3_RULES) >>1;
|
||||
UBool allowUnassigned = (UBool)((options & IDNAREF_ALLOW_UNASSIGNED) != 0);
|
||||
UBool useSTD3ASCIIRules = (UBool)((options & IDNAREF_USE_STD3_RULES) != 0);
|
||||
|
||||
UBool* caseFlags = NULL;
|
||||
|
||||
@ -421,8 +421,8 @@ idnaref_toUnicode(const UChar* src, int32_t srcLength,
|
||||
UBool srcIsASCII = TRUE;
|
||||
|
||||
//get the options
|
||||
UBool allowUnassigned = options & IDNAREF_ALLOW_UNASSIGNED;
|
||||
UBool useSTD3ASCIIRules = (options & IDNAREF_USE_STD3_RULES) >>1;
|
||||
UBool allowUnassigned = (UBool)((options & IDNAREF_ALLOW_UNASSIGNED) != 0);
|
||||
UBool useSTD3ASCIIRules = (UBool)((options & IDNAREF_USE_STD3_RULES) != 0);
|
||||
|
||||
if(U_FAILURE(*status)){
|
||||
goto CLEANUP;
|
||||
@ -632,8 +632,8 @@ idnaref_IDNToASCII( const UChar* src, int32_t srcLength,
|
||||
int32_t b1Capacity = MAX_LABEL_BUFFER_SIZE;
|
||||
|
||||
//get the options
|
||||
UBool allowUnassigned = options & IDNAREF_ALLOW_UNASSIGNED;
|
||||
UBool useSTD3ASCIIRules = (options & IDNAREF_USE_STD3_RULES) >>1;
|
||||
UBool allowUnassigned = (UBool)((options & IDNAREF_ALLOW_UNASSIGNED) != 0);
|
||||
UBool useSTD3ASCIIRules = (UBool)((options & IDNAREF_USE_STD3_RULES) != 0);
|
||||
UBool done = FALSE;
|
||||
|
||||
if(U_FAILURE(*status)){
|
||||
@ -787,8 +787,8 @@ idnaref_IDNToUnicode( const UChar* src, int32_t srcLength,
|
||||
int32_t b1Capacity = MAX_LABEL_BUFFER_SIZE;
|
||||
|
||||
//get the options
|
||||
UBool allowUnassigned = options & IDNAREF_ALLOW_UNASSIGNED;
|
||||
UBool useSTD3ASCIIRules = (options & IDNAREF_USE_STD3_RULES) >>1;
|
||||
UBool allowUnassigned = (UBool)((options & IDNAREF_ALLOW_UNASSIGNED) != 0);
|
||||
UBool useSTD3ASCIIRules = (UBool)((options & IDNAREF_USE_STD3_RULES) != 0);
|
||||
|
||||
if(U_FAILURE(*status)){
|
||||
goto CLEANUP;
|
||||
|
Loading…
Reference in New Issue
Block a user