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>
This commit is contained in:
Jaap Keuter 2018-06-03 16:32:14 +02:00 committed by Peter Wu
parent 4af23446b6
commit 79b12ab071
1 changed files with 1 additions and 1 deletions

View File

@ -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;