From 32c0551ba66452acc24c9dc163ade3a637b1c7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Espeland?= Date: Tue, 18 Jan 2011 23:17:55 +0100 Subject: [PATCH] output_vcd: Make timestamp work on 32-bit machine. --- output/output_vcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }