summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-08-08 16:56:51 +0200
committerMartin Kaiser <wireshark@kaiser.cx>2014-08-13 21:02:06 +0000
commitcef38a763783cea78253a75d85c573df28112772 (patch)
treee0c9981d29a1c23c61069f8fa757a10d8a8874a1
parent3e1fec0db22092ae82388b0e3baf7ee5a45e9a6c (diff)
downloadwireshark-cef38a763783cea78253a75d85c573df28112772.tar.gz
additional parentheses around the macro argument
Change-Id: Idd590dc4d79c1a550d35544b46a79a5cc755f503 Reviewed-on: https://code.wireshark.org/review/3577 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
-rw-r--r--epan/dissectors/packet-mpeg-sect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mpeg-sect.h b/epan/dissectors/packet-mpeg-sect.h
index bc27465cb8..9c647da485 100644
--- a/epan/dissectors/packet-mpeg-sect.h
+++ b/epan/dissectors/packet-mpeg-sect.h
@@ -65,7 +65,7 @@
#define PACKET_MPEG_SECT_PI__SIZE 4
/* convert a byte that contains two 4bit BCD digits into a decimal value */
-#define MPEG_SECT_BCD44_TO_DEC(x) (((x&0xf0) >> 4) * 10 + (x&0x0f))
+#define MPEG_SECT_BCD44_TO_DEC(x) ((((x)&0xf0) >> 4) * 10 + ((x)&0x0f))
/*
* Used to read a date provided in MJD format into a utc_time structure