Added parenthesis to fix precedence problem in ASN.1 backwards compatibility
authorTheodore Tso <tytso@mit.edu>
Fri, 21 Apr 1995 02:35:46 +0000 (02:35 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 21 Apr 1995 02:35:46 +0000 (02:35 +0000)
code.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5422 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/asn1_k_decode.c

index b25e5e7fc156c3ecbffeeea2710699bbed5e4920..4a7e668c6c4b1546ed0935ec6d6dca5639b4ecb7 100644 (file)
@@ -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];