From: Bert Vermeulen Date: Tue, 26 Nov 2013 15:59:04 +0000 (+0100) Subject: output/csv: Fix wrong cast. X-Git-Tag: libsigrok-0.3.0~530 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=34539700795f6ef4879105818cf8ed4e7336d6c1;p=libsigrok.git output/csv: Fix wrong cast. --- diff --git a/output/vcd.c b/output/vcd.c index 8e2d1b21..60ec58c3 100644 --- a/output/vcd.c +++ b/output/vcd.c @@ -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++) { index = g_array_index(ctx->probeindices, int, p); 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. */ if (prevbit == curbit)