From: Andy Heninger Date: Sun, 10 Jul 2011 23:22:00 +0000 (+0000) Subject: ICU-8595 Warning cleanup, UResType vs. int32_t X-Git-Tag: milestone-59-0-1~4664 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7608372a55d0bdf5bef69ef1c73515a677be7a1;p=icu ICU-8595 Warning cleanup, UResType vs. int32_t X-SVN-Rev: 30310 --- diff --git a/icu4c/source/common/uresbund.cpp b/icu4c/source/common/uresbund.cpp index bb03948b51a..de5048b059d 100644 --- a/icu4c/source/common/uresbund.cpp +++ b/icu4c/source/common/uresbund.cpp @@ -976,7 +976,7 @@ static UResourceBundle *init_resb_result(const ResourceData *rdata, Resource r, } else if(idx != -1) { /* if there is no key, but there is an index, try to get by the index */ /* here we have either a table or an array, so get the element */ - UResType type = (UResType)RES_GET_TYPE(r); + int32_t type = RES_GET_TYPE(r); if(URES_IS_TABLE(type)) { r = res_getTableItemByIndex(&(mainRes->fResData), r, idx, (const char **)&aKey); } else { /* array */ @@ -1685,7 +1685,6 @@ ures_getByKeyWithFallback(const UResourceBundle *resB, /*UResourceDataEntry *realData = NULL;*/ const char *key = inKey; UResourceBundle *helper = NULL; - UResType type; if (status==NULL || U_FAILURE(*status)) { return fillIn; @@ -1695,7 +1694,7 @@ ures_getByKeyWithFallback(const UResourceBundle *resB, return fillIn; } - type = (UResType)RES_GET_TYPE(resB->fRes); + int32_t type = RES_GET_TYPE(resB->fRes); if(URES_IS_TABLE(type)) { int32_t t; res = res_getTableItemByKey(&(resB->fResData), resB->fRes, &t, &key); @@ -1763,7 +1762,6 @@ U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, con Resource res = RES_BOGUS; UResourceDataEntry *realData = NULL; const char *key = inKey; - UResType type; if (status==NULL || U_FAILURE(*status)) { return fillIn; @@ -1773,7 +1771,7 @@ U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, con return fillIn; } - type = (UResType)RES_GET_TYPE(resB->fRes); + int32_t type = RES_GET_TYPE(resB->fRes); if(URES_IS_TABLE(type)) { int32_t t; res = res_getTableItemByKey(&(resB->fResData), resB->fRes, &t, &key); @@ -1817,7 +1815,6 @@ U_CAPI const UChar* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, c Resource res = RES_BOGUS; UResourceDataEntry *realData = NULL; const char* key = inKey; - UResType type; if (status==NULL || U_FAILURE(*status)) { return NULL; @@ -1827,7 +1824,7 @@ U_CAPI const UChar* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, c return NULL; } - type = (UResType)RES_GET_TYPE(resB->fRes); + int32_t type = RES_GET_TYPE(resB->fRes); if(URES_IS_TABLE(type)) { int32_t t=0;