Skip to content

Commit

Permalink
stress-bitops: fix assignment of is_pwr2
Browse files Browse the repository at this point in the history
Replace == with = to fix assignment

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
  • Loading branch information
ColinIanKing committed Jan 31, 2025
1 parent ad77e94 commit f1ee0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stress-bitops.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ static int OPTIMIZE3 stress_bitops_pwr2(const char *name, uint32_t *count)
for (tmp = j, c = 0; tmp; c++)
tmp &= (tmp - 1);

is_pwr2 == (c == 1);
is_pwr2 = (c == 1);
}
#endif
result = (j > 0) & ((j & (j - 1)) == 0);
Expand Down

0 comments on commit f1ee0b7

Please sign in to comment.