ICU-709 fix warnings (MSVC bug?) in test code

X-SVN-Rev: 3638
This commit is contained in:
Alan Liu 2001-02-16 17:12:12 +00:00
parent f203e26d36
commit 57e332c2ff

View file

@ -511,7 +511,7 @@ static void _expect(const UTransliterator* trans,
InitXReplaceableCallbacks(&xrepVtable);
InitXReplaceable(&xrep, cfrom);
limit = u_strlen(from);
utrans_trans(trans, &xrep, &xrepVtable, 0, &limit, &status);
utrans_trans(trans, (UReplaceable*)&xrep, &xrepVtable, 0, &limit, &status);
if (U_FAILURE(status)) {
log_err("FAIL: utrans_trans() failed, error=%s\n",
u_errorName(status));
@ -534,8 +534,8 @@ static void _expect(const UTransliterator* trans,
InitXReplaceable(&xrep, cfrom);
pos.start = pos.contextStart = 0;
pos.limit = pos.contextLimit = u_strlen(from);
utrans_transIncremental(trans, &xrep, &xrepVtable, &pos, &status);
utrans_trans(trans, &xrep, &xrepVtable, pos.start, &pos.limit, &status);
utrans_transIncremental(trans, (UReplaceable*)&xrep, &xrepVtable, &pos, &status);
utrans_trans(trans, (UReplaceable*)&xrep, &xrepVtable, pos.start, &pos.limit, &status);
if (U_FAILURE(status)) {
log_err("FAIL: utrans_transIncremental() failed, error=%s\n",
u_errorName(status));