From: Theodore Tso Date: Fri, 21 Apr 1995 02:35:46 +0000 (+0000) Subject: Added parenthesis to fix precedence problem in ASN.1 backwards compatibility X-Git-Tag: krb5-1.0-beta5~324 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6cfda9ba4533630d273331b6017f2a5f5e5dbad4;p=krb5.git Added parenthesis to fix precedence problem in ASN.1 backwards compatibility code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5422 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index b25e5e7fc..4a7e668c6 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -353,7 +353,7 @@ asn1_error_code asn1_decode_krb5_flags(buf, val) f = (f<<8) | ((krb5_flags)o&asn1_pad_mask[pad]); #ifdef BACKWARD_BITMASK_COMPAT - if ((f & 0xFFFF0000 == 0) && (f & 0xFFFF != 0)) + if (((f & 0xFFFF0000) == 0) && ((f & 0xFFFF) != 0)) #endif f = (asn1_swbits[(f & 0xff)] << 24) | (asn1_swbits[(f >> 8) & 0xff] << 16) | (asn1_swbits[(f >> 16) & 0xff] << 8) | asn1_swbits[(f >> 24) & 0xff];