From: Kurt Zeilenga Date: Tue, 15 Jun 1999 17:35:31 +0000 (+0000) Subject: Fix bad LBER_INVALID macro X-Git-Tag: OPENLDAP_REL_ENG_2_BP~305 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c094140759d3c94ee76fafa9dd2d9307f802cc9;p=openldap Fix bad LBER_INVALID macro --- diff --git a/include/lber.h b/include/lber.h index 129bfdcf3a..a9d3c85d07 100644 --- a/include/lber.h +++ b/include/lber.h @@ -66,9 +66,8 @@ LDAP_BEGIN_DECL * Note that LBER_ERROR and LBER_DEFAULT are values that can never appear * as valid BER tags, and so it is safe to use them to report errors. In * fact, any tag for which the following is true is invalid: - * (( tag & 0x00000080 ) != 0 ) && (( tag & 0xFFFFFF00 ) != 0 ) */ -#define LBER_INVALID(tag) ( ( (tag) & 0xFFFFFF80UL ) != 0 ) +#define LBER_INVALID(tag) (((tag) & 0x00000080) && (((tag) & 0xFFFFFF00)) #define LBER_ERROR 0xffffffffUL #define LBER_DEFAULT 0xffffffffUL