From: Hallvard Furuseth Date: Fri, 22 Jul 2005 13:24:47 +0000 (+0000) Subject: Cast LDAP_BOOL value to LDAP_BOOLEANS; it could only use flags fitting in int. X-Git-Tag: OPENLDAP_AC_BP~244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0091b101f042e6992fc19d80e2825bc0fa01ac5;p=openldap Cast LDAP_BOOL value to LDAP_BOOLEANS; it could only use flags fitting in int. --- diff --git a/libraries/libldap/ldap-int.h b/libraries/libldap/ldap-int.h index 504b5d5b35..11100f21f7 100644 --- a/libraries/libldap/ldap-int.h +++ b/libraries/libldap/ldap-int.h @@ -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))