mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Cast LDAP_BOOL value to LDAP_BOOLEANS; it could only use flags fitting in int.
This commit is contained in:
parent
4a57978a4b
commit
f0091b101f
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user