Fix operator precedence problem.
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 5 Jun 2008 09:15:42 +0000 (09:15 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 5 Jun 2008 09:15:42 +0000 (09:15 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25430 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-umts_fp.c

index caf8145f4ad65d8fae1fcb09dd9d4ca301224ee4..490a9ff3bbd5abe5ad2c8eb883271045fbb3571d 100644 (file)
@@ -1874,7 +1874,7 @@ int dissect_dch_rx_timing_deviation(packet_info *pinfo, proto_tree *tree,
                     break;
             }
             extra_bits = tvb_get_guint8(tvb, offset) &
-                             (bits_to_extend == 1) ? 0x01 : 0x3;
+                             ((bits_to_extend == 1) ? 0x01 : 0x03);
             timing_deviation = (extra_bits << 8) | (timing_deviation);
             proto_item_append_text(timing_deviation_ti,
                                    " (extended to 0x%x)",