From: Pierangelo Masarati Date: Wed, 19 Aug 2009 13:10:30 +0000 (+0000) Subject: cleanup previous commit X-Git-Tag: ACLCHECK_0~275 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a846dad6fbd7a45390d4f4addbc54c562edfb6d0;p=openldap cleanup previous commit --- diff --git a/libraries/libldap/utf-8-conv.c b/libraries/libldap/utf-8-conv.c index 782900ea00..09e6b83014 100644 --- a/libraries/libldap/utf-8-conv.c +++ b/libraries/libldap/utf-8-conv.c @@ -192,7 +192,8 @@ ldap_x_wc_to_utf8 ( char *utf8char, wchar_t wchar, size_t count ) if( wchar < 0x4000000 ) return 5; #if SIZEOF_WCHAR_T > 4 - if( wchar < 0x80000000LL ) + /* UL is not strictly needed by ANSI C */ + if( wchar < (wchar_t)0x80000000UL ) #endif /* SIZEOF_WCHAR_T > 4 */ return 6; return -1; @@ -239,7 +240,8 @@ ldap_x_wc_to_utf8 ( char *utf8char, wchar_t wchar, size_t count ) } else #if SIZEOF_WCHAR_T > 4 - if( wchar < 0x80000000LL ) + /* UL is not strictly needed by ANSI C */ + if( wchar < (wchar_t)0x80000000UL ) #endif /* SIZEOF_WCHAR_T > 4 */ { if (count >= 6) {