mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 06:45:39 +00:00
Fix gcc sign conversion warnings in event.c.
This commit is contained in:
@@ -493,12 +493,12 @@ void clock_gettime2(struct timespec *ts)
|
||||
ts->tv_nsec = tv.tv_usec*1000;
|
||||
}
|
||||
|
||||
void add_time_in_ms(struct timespec *ts, int time_in_ms)
|
||||
void add_time_in_ms(struct timespec *ts, uint64_t time_in_ms)
|
||||
{
|
||||
if (!ts)
|
||||
return;
|
||||
|
||||
uint64_t t_ns = (uint64_t)ts->tv_nsec + 1000000 * (uint64_t)time_in_ms;
|
||||
uint64_t t_ns = (uint64_t)ts->tv_nsec + 1000000 * time_in_ms;
|
||||
while (t_ns >= ONE_BILLION) {
|
||||
ts->tv_sec += 1;
|
||||
t_ns -= ONE_BILLION;
|
||||
|
||||
@@ -55,7 +55,7 @@ extern void wave_set_callback_is_output_enabled(t_wave_callback *cb);
|
||||
|
||||
// general functions
|
||||
extern void clock_gettime2(struct timespec *ts);
|
||||
extern void add_time_in_ms(struct timespec *ts, int time_in_ms);
|
||||
extern void add_time_in_ms(struct timespec *ts, uint64_t time_in_ms);
|
||||
|
||||
// for tests
|
||||
extern void *wave_test_get_write_buffer();
|
||||
|
||||
Reference in New Issue
Block a user