Fix implicit signed conversions
Some checks failed
CI / build:rt (push) Failing after 12s
CI / build:asan (push) Failing after 12s
CI / build:nompi (push) Successful in 59s
CI / build:debug (push) Successful in 1m50s
CI / build:local (push) Successful in 2m2s
CI / build:compilers (push) Successful in 2m27s

This commit is contained in:
Rodrigo Arias 2024-09-09 08:59:28 +02:00
parent c8b95313ff
commit 36cf3121d1
2 changed files with 3 additions and 3 deletions

View File

@ -296,7 +296,7 @@ rebuild_ring(struct ring *r, long long start, struct ovni_ev *first, struct ovni
die("exceeding last pointer");
r->ev[i] = ev;
size_t size = ovni_ev_size(ev);
size_t size = (size_t) ovni_ev_size(ev);
ev = (struct ovni_ev *) (((uint8_t *) ev) + size);
}

View File

@ -19,7 +19,7 @@
*/
static void
emit(char *mcv, int64_t clock, int size)
emit(char *mcv, uint64_t clock, int size)
{
struct ovni_ev ev = {0};
ovni_ev_set_mcv(&ev, mcv);
@ -40,7 +40,7 @@ main(void)
/* Leave some room to prevent clashes */
sleep_us(100); /* 100000 us */
int64_t t0 = ovni_clock_now();
uint64_t t0 = ovni_clock_now();
sleep_us(100); /* 100000 us */
/* We want it to end like this: