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:
Daniel Elstner 2014-02-03 01:54:20 +01:00
parent 7ad4e2b80b
commit cd1b0e8f79
1 changed files with 49 additions and 49 deletions

View File

@ -472,9 +472,9 @@ static void parse_contents(FILE *file, const struct sr_dev_inst *sdi, struct con
/* Found our probe */
if (bit)
prev_values |= (1 << i);
prev_values |= (uint64_t)1 << i;
else
prev_values &= ~(1 << i);
prev_values &= ~((uint64_t)1 << i);
break;
}