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);