From 8767d1596fca8cf571e73042fe7ebd2eb69ec8da Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 11 Aug 2000 16:33:09 +0000 Subject: [PATCH] ICU-535 fixed some compiler warnings X-SVN-Rev: 2189 --- icu4c/source/test/cintltst/nucnvtst.c | 33 +++++++++++++-------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/icu4c/source/test/cintltst/nucnvtst.c b/icu4c/source/test/cintltst/nucnvtst.c index 96f3fa31078..51665d2ff47 100644 --- a/icu4c/source/test/cintltst/nucnvtst.c +++ b/icu4c/source/test/cintltst/nucnvtst.c @@ -231,13 +231,13 @@ UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expe realSourceEnd = source + sourceLen; if ( gOutBufferSize != realBufferSize ) - checkOffsets = FALSE; + checkOffsets = FALSE; if( gInBufferSize != NEW_MAX_BUFFER ) - checkOffsets = FALSE; + checkOffsets = FALSE; do - { + { end = nct_min(targ + gOutBufferSize, realBufferEnd); sourceLimit = nct_min(src + gInBufferSize, realSourceEnd); @@ -261,37 +261,37 @@ UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expe checkOffsets ? offs : NULL, doFlush, /* flush if we're at the end of the input data */ &status); - } while ( (status == U_INDEX_OUTOFBOUNDS_ERROR) || (U_SUCCESS(status) && sourceLimit < realSourceEnd) ); + } while ( (status == U_INDEX_OUTOFBOUNDS_ERROR) || (U_SUCCESS(status) && sourceLimit < realSourceEnd) ); if(U_FAILURE(status)) - { + { log_err("Problem doing fromUnicode to %s, errcode %s %s\n", codepage, myErrorName(status), gNuConvTestName); return FALSE; - } + } log_verbose("\nConversion done [%d uchars in -> %d chars out]. \nResult :", sourceLen, targ-junkout); if(VERBOSITY) { - uint8_t junk[9999]; - uint8_t offset_str[9999]; + char junk[9999]; + char offset_str[9999]; uint8_t *p; junk[0] = 0; offset_str[0] = 0; for(p = junkout;p