From: HÃ¥vard Espeland Date: Tue, 18 Jan 2011 22:17:55 +0000 (+0100) Subject: output_vcd: Make timestamp work on 32-bit machine. X-Git-Tag: libsigrok-0.1.0~407 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=32c0551ba66452acc24c9dc163ade3a637b1c7f2;p=libsigrok.git output_vcd: Make timestamp work on 32-bit machine. --- 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)); }