X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Fvcd.c;h=60ec58c3a9bd67f65623c446c67f40743a138b89;hb=3e43da1f70d48aba917026074d46ca4c91e43bf1;hp=8e2d1b2191d9e1f77825a58c9cdec33aeeac2e83;hpb=d3c74a6fb05118e32ad421443251b7b3288918f9;p=libsigrok.git 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)