mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-460 OS/390 porting fixes
X-SVN-Rev: 2294
This commit is contained in:
parent
63880d0371
commit
82781d6967
4 changed files with 8 additions and 3 deletions
|
@ -150,6 +150,7 @@ struct UResourceBundle;
|
|||
typedef struct UResourceBundle UResourceBundle;
|
||||
|
||||
typedef enum {
|
||||
RES_NONE=-1,
|
||||
RES_STRING=0,
|
||||
RES_BINARY=1,
|
||||
RES_TABLE=2,
|
||||
|
|
|
@ -536,7 +536,7 @@ U_CAPI uint32_t U_EXPORT2 ures_getInt(const UResourceBundle* resB, UErrorCode *s
|
|||
|
||||
U_CAPI UResType U_EXPORT2 ures_getType(UResourceBundle *resB) {
|
||||
if(resB == NULL) {
|
||||
return (UResType) RES_BOGUS;
|
||||
return RES_NONE;
|
||||
}
|
||||
return (UResType) (RES_GET_TYPE(resB->fRes));
|
||||
}
|
||||
|
|
|
@ -470,8 +470,8 @@ void TestErrorConditions(){
|
|||
}
|
||||
/*Test ures_getType() with UResourceBundle = NULL should return RES_BOGUS or -1*/
|
||||
status=U_ZERO_ERROR;
|
||||
if(ures_getType(NULL) != -1){
|
||||
log_err("ERROR: ures_getType() should return RES_BOGUS when UResourceBundle=NULL. Got =%d\n", ures_getType(NULL));
|
||||
if(ures_getType(NULL) != RES_NONE){
|
||||
log_err("ERROR: ures_getType() should return RES_NONE when UResourceBundle=NULL. Got =%d\n", ures_getType(NULL));
|
||||
}
|
||||
/*Test ures_getKey() with UResourceBundle = NULL*/
|
||||
status=U_ZERO_ERROR;
|
||||
|
|
|
@ -267,7 +267,11 @@ void TestPUtilAPI(){
|
|||
expn1=uprv_nextDouble(uprv_getNaN(), TRUE);
|
||||
doAssert(expn1, uprv_getNaN(), "uprv_nextDouble(uprv_getNaN(), TRUE) failed.");
|
||||
#ifdef OS390
|
||||
#if IEEE_754
|
||||
y1=4.9406564584125e-324;
|
||||
#else
|
||||
y1=4.9406564584125e-78;
|
||||
#endif
|
||||
#else
|
||||
y1=4.9406564584125e-324;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue