]> sigrok.org Git - libsigrok.git/commitdiff
output_vcd: Make timestamp work on 32-bit machine.
authorHåvard Espeland <redacted>
Tue, 18 Jan 2011 22:17:55 +0000 (23:17 +0100)
committerHåvard Espeland <redacted>
Tue, 18 Jan 2011 22:17:55 +0000 (23:17 +0100)
output/output_vcd.c

index 6564fec915f71c3c681d8b2292167c4a38b30526..b21bfb92d83d17b87816011ba84b0c9165b812fb 100644 (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));
                }