From f56f103a63b3d0f15b144265e42d8f76bddb5c94 Mon Sep 17 00:00:00 2001 From: Jan Wielemaker Date: Sun, 8 Dec 2024 12:11:56 +0100 Subject: [PATCH] Cleanup in check_data() --- src/pl-pro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pl-pro.c b/src/pl-pro.c index ab05048f4c..5aa6082e4c 100644 --- a/src/pl-pro.c +++ b/src/pl-pro.c @@ -846,7 +846,7 @@ check_data(DECL_LD Word p, chk_data *context) { Word a = addressIndirect(*p); assert(!is_marked(p)); - if ( !((uintptr_t)a&(sizeof(word)-1)) == 0 ) + if ( (uintptr_t)a & (sizeof(word)-1) ) printk(context, "Indirect at %p is unaligned", a); if ( !onGlobal(a) ) printk(context, "Indirect at %p not on global stack", a);