ICU-535 fixed some compiler warnings

X-SVN-Rev: 2201
This commit is contained in:
George Rhoten 2000-08-11 19:45:02 +00:00
parent 3508752164
commit 040a460a82
2 changed files with 10 additions and 10 deletions

View File

@ -39,10 +39,10 @@ static int dotestname(const char *name, const char *standard, const char *expect
tag = ucnv_getStandardName(name, standard, &error); tag = ucnv_getStandardName(name, standard, &error);
if (!tag) { if (!tag) {
log_err("FAIL: could not find %s standard name for %s\n", standard, name); log_err("FAIL: could not find %s standard name for %s\n", standard, name);
res = 0; res = 0;
} else if (expected && uprv_strcmp(expected, tag)) { } else if (expected && uprv_strcmp(expected, tag)) {
log_err("FAIL: expected %s for %s standard name for %s, got %s\n", expected, standard, name, tag); log_err("FAIL: expected %s for %s standard name for %s, got %s\n", expected, standard, name, tag);
res = 0; res = 0;
} }
return res; return res;
@ -52,7 +52,7 @@ void TestStandardNames()
{ {
int res = 1; int res = 1;
int i, count; uint16_t i, count;
UErrorCode err; UErrorCode err;
/* Iterate over all standards. */ /* Iterate over all standards. */

View File

@ -216,7 +216,7 @@ main(int argc, const char *argv[]) {
/* determine the length of tables for the data offset of the strings */ /* determine the length of tables for the data offset of the strings */
tagOffset = 2 + 4 * aliasCount + 2 + 4 * converterCount; tagOffset = 2 + 4 * aliasCount + 2 + 4 * converterCount;
stringOffset = tagOffset + 2 + (2 * tagCount) * converterCount + tagBlock.top; stringOffset = (uint16_t)(tagOffset + 2 + (2 * tagCount) * converterCount + tagBlock.top);
/* write the table of aliases */ /* write the table of aliases */
udata_write16(out, aliasCount); udata_write16(out, aliasCount);
@ -319,7 +319,7 @@ parseLine(const char *line) {
uint16_t tag; uint16_t tag;
/* add the tag to the tag table */ /* add the tag to the tag table */
tag = getTagNumber(line + start, limit - start); tag = getTagNumber(line + start, (uint16_t)(limit - start));
addTaggedAlias(tag, alias, cnv); addTaggedAlias(tag, alias, cnv);
} }
@ -383,7 +383,7 @@ parseLine(const char *line) {
uint16_t tag; uint16_t tag;
/* add the tag to the tag table */ /* add the tag to the tag table */
tag = getTagNumber(line + start, limit - start); tag = getTagNumber(line + start, (uint16_t)(limit - start));
addTaggedAlias(tag, alias, cnv); addTaggedAlias(tag, alias, cnv);
} }