From f0091b101f042e6992fc19d80e2825bc0fa01ac5 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 22 Jul 2005 13:24:47 +0000 Subject: [PATCH] Cast LDAP_BOOL value to LDAP_BOOLEANS; it could only use flags fitting in int. --- libraries/libldap/ldap-int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))