ICU-1855 Fixed a warning resulting from the latest changes

X-SVN-Rev: 10113
This commit is contained in:
Vladimir Weinstein 2002-10-30 21:11:20 +00:00
parent c3163234f6
commit f0f13be7b7

View File

@ -1773,7 +1773,7 @@ static void TestCEValidity()
rulesCopy = (UChar *)malloc((ruleLen + rulesCopy = (UChar *)malloc((ruleLen +
UCOL_TOK_EXTRA_RULE_SPACE_SIZE) * sizeof(UChar)); UCOL_TOK_EXTRA_RULE_SPACE_SIZE) * sizeof(UChar));
uprv_memcpy(rulesCopy, rules, ruleLen * sizeof(UChar)); uprv_memcpy(rulesCopy, rules, ruleLen * sizeof(UChar));
src.source = src.current = rulesCopy; src.current = src.source = rulesCopy;
src.end = rulesCopy + ruleLen; src.end = rulesCopy + ruleLen;
src.extraCurrent = src.end; src.extraCurrent = src.end;
src.extraEnd = src.end + UCOL_TOK_EXTRA_RULE_SPACE_SIZE; src.extraEnd = src.end + UCOL_TOK_EXTRA_RULE_SPACE_SIZE;
@ -1953,7 +1953,7 @@ static void TestSortKeyValidity(void)
rulesCopy = (UChar *)malloc((ruleLen + rulesCopy = (UChar *)malloc((ruleLen +
UCOL_TOK_EXTRA_RULE_SPACE_SIZE) * sizeof(UChar)); UCOL_TOK_EXTRA_RULE_SPACE_SIZE) * sizeof(UChar));
uprv_memcpy(rulesCopy, rules, ruleLen * sizeof(UChar)); uprv_memcpy(rulesCopy, rules, ruleLen * sizeof(UChar));
src.source = src.current = rulesCopy; src.current = src.source = rulesCopy;
src.end = rulesCopy + ruleLen; src.end = rulesCopy + ruleLen;
src.extraCurrent = src.end; src.extraCurrent = src.end;
src.extraEnd = src.end + UCOL_TOK_EXTRA_RULE_SPACE_SIZE; src.extraEnd = src.end + UCOL_TOK_EXTRA_RULE_SPACE_SIZE;