input/vcd: Avoid truncation of shift to 32 bits.
(parse_contents): Cast constant 1 to uint64_t before shifting left. Also fix whitespace errors.
This commit is contained in:
parent
7ad4e2b80b
commit
cd1b0e8f79
|
@ -472,9 +472,9 @@ static void parse_contents(FILE *file, const struct sr_dev_inst *sdi, struct con
|
||||||
|
|
||||||
/* Found our probe */
|
/* Found our probe */
|
||||||
if (bit)
|
if (bit)
|
||||||
prev_values |= (1 << i);
|
prev_values |= (uint64_t)1 << i;
|
||||||
else
|
else
|
||||||
prev_values &= ~(1 << i);
|
prev_values &= ~((uint64_t)1 << i);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue