aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/k12.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2018-06-03 16:32:14 +0200
committerPeter Wu <peter@lekensteyn.nl>2018-06-04 09:18:26 +0000
commit79b12ab0713f6d7b6ce536f9ce1382f6901914e0 (patch)
tree1e41efe9507ffbda8897526dea3c1d33569e545b /wiretap/k12.c
parent4af23446b697602e51831ca7fce59a9c9d284003 (diff)
Use proper unsigned constant for bit shift
Shifting (signed) '1' 31 bits is undefined. Make it unsigned. Change-Id: Iff300493907c53b47bb116a0282846955e0f2429 Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-on: https://code.wireshark.org/review/27981 Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'wiretap/k12.c')
-rw-r--r--wiretap/k12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/k12.c b/wiretap/k12.c
index d84fec7646..326c200a57 100644
--- a/wiretap/k12.c
+++ b/wiretap/k12.c
@@ -1219,7 +1219,7 @@ static void k12_dump_src_setting(gpointer k _U_, gpointer v, gpointer p) {
obj.record.hwpart_len = g_htons(0x18);
for( i=0; i<32; i++ ) {
obj.record.extra.desc.ds0mask.mask[i] =
- (src_desc->input_info.ds0mask & (1 << i)) ? 0xff : 0x00;
+ (src_desc->input_info.ds0mask & (1UL << i)) ? 0xff : 0x00;
}
offset = 0x3c;
break;