From 2f2f6af2bca5d3aaefa76d611b9baefb1deea856 Mon Sep 17 00:00:00 2001 From: Ram Viswanadha Date: Thu, 20 Mar 2003 18:08:39 +0000 Subject: [PATCH] ICU-2194 fix compiler warnings on Solaris X-SVN-Rev: 11367 --- icu4c/source/test/intltest/idnaref.cpp | 10 +++++----- icu4c/source/test/intltest/idnaref.h | 10 +++++----- icu4c/source/test/intltest/punyref.c | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/icu4c/source/test/intltest/idnaref.cpp b/icu4c/source/test/intltest/idnaref.cpp index 051ee226db2..d2caaa6c016 100644 --- a/icu4c/source/test/intltest/idnaref.cpp +++ b/icu4c/source/test/intltest/idnaref.cpp @@ -239,7 +239,7 @@ CLEANUP: - int32_t +U_CFUNC int32_t idnaref_toASCII(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, @@ -386,7 +386,7 @@ CLEANUP: } - int32_t +U_CFUNC int32_t idnaref_toUnicode(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, @@ -606,7 +606,7 @@ getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep, } } - int32_t +U_CFUNC int32_t idnaref_IDNToASCII( const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, @@ -760,7 +760,7 @@ CLEANUP: return u_terminateUChars(dest, destCapacity, reqLength, status); } - int32_t +U_CFUNC int32_t idnaref_IDNToUnicode( const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, @@ -911,7 +911,7 @@ CLEANUP: return u_terminateUChars(dest, destCapacity, reqLength, status); } - int32_t +U_CFUNC int32_t idnaref_compare( const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, int32_t options, diff --git a/icu4c/source/test/intltest/idnaref.h b/icu4c/source/test/intltest/idnaref.h index 7dc712598b5..558e5ce93b4 100644 --- a/icu4c/source/test/intltest/idnaref.h +++ b/icu4c/source/test/intltest/idnaref.h @@ -56,7 +56,7 @@ * @return Number of ASCII characters converted. * @draft ICU 2.6 */ -int32_t +U_CFUNC int32_t idnaref_toASCII(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, @@ -95,7 +95,7 @@ idnaref_toASCII(const UChar* src, int32_t srcLength, * @return Number of Unicode characters converted. * @draft ICU 2.6 */ -int32_t +U_CFUNC int32_t idnaref_toUnicode(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, @@ -139,7 +139,7 @@ idnaref_toUnicode(const UChar* src, int32_t srcLength, * @return Number of ASCII characters converted. * @draft ICU 2.6 */ -int32_t +U_CFUNC int32_t idnaref_IDNToASCII( const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, @@ -179,7 +179,7 @@ idnaref_IDNToASCII( const UChar* src, int32_t srcLength, * @return Number of ASCII characters converted. * @draft ICU 2.6 */ -int32_t +U_CFUNC int32_t idnaref_IDNToUnicode( const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, @@ -214,7 +214,7 @@ idnaref_IDNToUnicode( const UChar* src, int32_t srcLength, * @return <0 or 0 or >0 as usual for string comparisons * @draft ICU 2.6 */ -int32_t +U_CFUNC int32_t idnaref_compare( const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, int32_t options, diff --git a/icu4c/source/test/intltest/punyref.c b/icu4c/source/test/intltest/punyref.c index f262ea207ac..0c09ecae531 100644 --- a/icu4c/source/test/intltest/punyref.c +++ b/icu4c/source/test/intltest/punyref.c @@ -67,7 +67,7 @@ static char encode_basic(punycode_uint bcp, int flag) /*** Platform-specific constants ***/ /* maxint is the maximum value of a punycode_uint variable: */ -static const punycode_uint maxint = -1; +static const punycode_uint maxint = (punycode_uint) (-1); /* Because maxint is unsigned, -1 becomes the maximum value. */ /*** Bias adaptation function ***/