]> git.sur5r.net Git - openldap/commitdiff
cleanup previous commit
authorPierangelo Masarati <ando@openldap.org>
Wed, 19 Aug 2009 13:10:30 +0000 (13:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 19 Aug 2009 13:10:30 +0000 (13:10 +0000)
libraries/libldap/utf-8-conv.c

index 782900ea000fdd6c9a654a88c78ee7b96ae33a5c..09e6b8301469e2a24587e34b82cbf5c8d69f10ab 100644 (file)
@@ -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) {