]> git.sur5r.net Git - openldap/commitdiff
Cast LDAP_BOOL value to LDAP_BOOLEANS; it could only use flags fitting in int.
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 22 Jul 2005 13:24:47 +0000 (13:24 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 22 Jul 2005 13:24:47 +0000 (13:24 +0000)
libraries/libldap/ldap-int.h

index 504b5d5b3545c791697330a0bcda67c0191d0b8f..11100f21f71654a01f4ab5a5d92be6869344a9a3 100644 (file)
@@ -119,7 +119,7 @@ LDAP_BEGIN_DECL
 #define LDAP_BOOL_TLS                  3
 
 #define LDAP_BOOLEANS  unsigned long
-#define LDAP_BOOL(n)   (1 << (n))
+#define LDAP_BOOL(n)   ((LDAP_BOOLEANS)1 << (n))
 #define LDAP_BOOL_GET(lo, bool)        \
        ((lo)->ldo_booleans & LDAP_BOOL(bool) ? -1 : 0)
 #define LDAP_BOOL_SET(lo, bool) ((lo)->ldo_booleans |= LDAP_BOOL(bool))