Cast LDAP_BOOL value to LDAP_BOOLEANS; it could only use flags fitting in int.

This commit is contained in:
Hallvard Furuseth 2005-07-22 13:24:47 +00:00
parent 4a57978a4b
commit f0091b101f

View 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))