output_vcd: Make timestamp work on 32-bit machine.

This commit is contained in:
Håvard Espeland 2011-01-18 23:17:55 +01:00
parent 94ba4bd689
commit 32c0551ba6
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}