]> sigrok.org Git - libsigrok.git/commitdiff
output/csv: Fix wrong cast.
authorBert Vermeulen <redacted>
Tue, 26 Nov 2013 15:59:04 +0000 (16:59 +0100)
committerBert Vermeulen <redacted>
Tue, 26 Nov 2013 21:23:37 +0000 (22:23 +0100)
output/vcd.c

index 8e2d1b2191d9e1f77825a58c9cdec33aeeac2e83..60ec58c3a9bd67f65623c446c67f40743a138b89 100644 (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++) {
                        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)