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
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:
parent
c8b95313ff
commit
36cf3121d1
@ -296,7 +296,7 @@ rebuild_ring(struct ring *r, long long start, struct ovni_ev *first, struct ovni
|
|||||||
die("exceeding last pointer");
|
die("exceeding last pointer");
|
||||||
|
|
||||||
r->ev[i] = ev;
|
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);
|
ev = (struct ovni_ev *) (((uint8_t *) ev) + size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
emit(char *mcv, int64_t clock, int size)
|
emit(char *mcv, uint64_t clock, int size)
|
||||||
{
|
{
|
||||||
struct ovni_ev ev = {0};
|
struct ovni_ev ev = {0};
|
||||||
ovni_ev_set_mcv(&ev, mcv);
|
ovni_ev_set_mcv(&ev, mcv);
|
||||||
@ -40,7 +40,7 @@ main(void)
|
|||||||
|
|
||||||
/* Leave some room to prevent clashes */
|
/* Leave some room to prevent clashes */
|
||||||
sleep_us(100); /* 100000 us */
|
sleep_us(100); /* 100000 us */
|
||||||
int64_t t0 = ovni_clock_now();
|
uint64_t t0 = ovni_clock_now();
|
||||||
sleep_us(100); /* 100000 us */
|
sleep_us(100); /* 100000 us */
|
||||||
|
|
||||||
/* We want it to end like this:
|
/* We want it to end like this:
|
||||||
|
Loading…
Reference in New Issue
Block a user