output/vcd: use larger data type to internally store frequency

The 'period' member of the VCD output module's context is supposed to
hold frequencies that correspond to the timescale used during export.
An 'int' (in combination with VCD's 1/10/100 constraint) thus would
result in a 1GHz limit, use uint64_t instead to support higher rates.
This commit is contained in:
Gerhard Sittig 2018-10-21 15:40:55 +02:00 committed by Uwe Hermann
parent 3895064542
commit 4ddea31451
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ struct context {
int num_enabled_channels; int num_enabled_channels;
uint8_t *prevsample; uint8_t *prevsample;
gboolean header_done; gboolean header_done;
int period; uint64_t period;
int *channel_index; int *channel_index;
uint64_t samplerate; uint64_t samplerate;
uint64_t samplecount; uint64_t samplecount;