output/csv: Fix wrong cast.

This commit is contained in:
Bert Vermeulen 2013-11-26 16:59:04 +01:00
parent c4d85a4026
commit 3453970079
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ static int receive(struct sr_output *o, const struct sr_dev_inst *sdi,
for (p = 0; p < ctx->num_enabled_probes; p++) { for (p = 0; p < ctx->num_enabled_probes; p++) {
index = g_array_index(ctx->probeindices, int, p); index = g_array_index(ctx->probeindices, int, p);
curbit = (sample[p / 8] & (((uint8_t) 1) << index)) >> index; curbit = (sample[p / 8] & (((uint8_t) 1) << index)) >> index;
prevbit = (ctx->prevsample[p / 8] & (((uint64_t) 1) << index)) >> index; prevbit = (ctx->prevsample[p / 8] & (((uint8_t) 1) << index)) >> index;
/* VCD only contains deltas/changes of signals. */ /* VCD only contains deltas/changes of signals. */
if (prevbit == curbit) if (prevbit == curbit)