From b2425000cc3aadfce1eb17ea28ec88cfe459d1aa Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 8 Nov 2005 22:44:37 +0000 Subject: [PATCH] ICU-4707 Fix some xlc compiler warnings. X-SVN-Rev: 18776 --- icu4c/source/test/cintltst/nucnvtst.c | 106 +++++++++++++------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/icu4c/source/test/cintltst/nucnvtst.c b/icu4c/source/test/cintltst/nucnvtst.c index 101d66d4930..e8bfe8f6eee 100644 --- a/icu4c/source/test/cintltst/nucnvtst.c +++ b/icu4c/source/test/cintltst/nucnvtst.c @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2004, International Business Machines Corporation and + * Copyright (c) 1997-2005, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ /******************************************************************************** @@ -2947,8 +2947,8 @@ TestHZ() { uBuf = (UChar*)malloc(uBufSize * sizeof(UChar)*5); cBuf =(char*)malloc(uBufSize * sizeof(char) * 5); - uSource = (const UChar*)&in[0]; - uSourceLimit=(const UChar*)&in[sizeof(in)/2]; + uSource = (const UChar*)in; + uSourceLimit=(const UChar*)in + (sizeof(in)/sizeof(in[0])); cTarget = cBuf; cTargetLimit = cBuf +uBufSize*5; uTarget = uBuf; @@ -2967,7 +2967,7 @@ TestHZ() { log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode)); return; } - uSource = (const UChar*)&in[0]; + uSource = (const UChar*)in; while(uSource