X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Foutput_vcd.c;h=b21bfb92d83d17b87816011ba84b0c9165b812fb;hb=aa4b110766256f010af198e1e5f2ca64055403df;hp=6564fec915f71c3c681d8b2292167c4a38b30526;hpb=b33e7d7058a5a092eea7b8bce18cf95d70e5ff5a;p=libsigrok.git diff --git a/output/output_vcd.c b/output/output_vcd.c index 6564fec9..b21bfb92 100644 --- a/output/output_vcd.c +++ b/output/output_vcd.c @@ -208,7 +208,7 @@ static int data(struct output *o, char *data_in, uint64_t length_in, /* Output which signal changed to which value. */ g_string_append_printf(out, "#%" PRIu64 "\n%i%c\n", - (long)(((float)samplecount / ctx->samplerate) + (uint64_t)(((float)samplecount / ctx->samplerate) * ctx->period), curbit, (char)('!' + p)); }