Skip to content

Commit

Permalink
Cleanup in check_data()
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Dec 8, 2024
1 parent 9b97723 commit f56f103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pl-pro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f56f103

Please sign in to comment.