diff options
author | Maria Matejka <mq@ucw.cz> | 2022-02-04 15:50:21 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-02-04 15:50:21 +0100 |
commit | 5a65ae45e5da06b9e7c6a690aa7c4afdd08dca6c (patch) | |
tree | 4bf5be3cc97ef00d23128a701926e62b14d62b9e | |
parent | cc73726620da84a8ed79cf852384226aa05e5458 (diff) |
Tamed harmless i368 warnings
-rw-r--r-- | lib/slab.c | 2 | ||||
-rw-r--r-- | sysdep/unix/coroutine.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -213,7 +213,7 @@ sl_new(pool *p, uint size) + sizeof(u32) * s->head_bitfield_len + align - 1) / align * align; - } while (s->objs_per_slab * size + s->head_size > page_size); + } while (s->objs_per_slab * size + s->head_size > (uint) page_size); if (!s->objs_per_slab) bug("Slab: object too large"); diff --git a/sysdep/unix/coroutine.c b/sysdep/unix/coroutine.c index 4747d01a..2068afd5 100644 --- a/sysdep/unix/coroutine.c +++ b/sysdep/unix/coroutine.c @@ -86,7 +86,7 @@ uint dg_order(struct domain_generic *dg) void do_lock(struct domain_generic *dg, struct domain_generic **lsp) { - if ((char *) lsp - (char *) &locking_stack != dg->order) + if ((char *) lsp - (char *) &locking_stack != (int) dg->order) bug("Trying to lock on bad position: order=%u, lsp=%p, base=%p", dg->order, lsp, &locking_stack); if (lsp <= last_locked) @@ -110,7 +110,7 @@ void do_lock(struct domain_generic *dg, struct domain_generic **lsp) void do_unlock(struct domain_generic *dg, struct domain_generic **lsp) { - if ((char *) lsp - (char *) &locking_stack != dg->order) + if ((char *) lsp - (char *) &locking_stack != (int) dg->order) bug("Trying to unlock on bad position: order=%u, lsp=%p, base=%p", dg->order, lsp, &locking_stack); if (dg->locked_by != &locking_stack) |