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 /sysdep | |
parent | cc73726620da84a8ed79cf852384226aa05e5458 (diff) |
Tamed harmless i368 warnings
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/coroutine.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |