Skip to content
This repository was archived by the owner on Jan 28, 2023. It is now read-only.

Commit 8f59564

Browse files
committed
Fixed hax_test_and_clear_bit
Signed-off-by: Alexandro Sanchez Bach <[email protected]>
1 parent 599728c commit 8f59564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/linux/hax_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ int hax_test_and_clear_bit(int bit, uint64_t *memory)
258258
unsigned long *addr;
259259

260260
addr = (unsigned long *)memory;
261-
return test_and_clear_bit(bit, addr);
261+
return !test_and_clear_bit(bit, addr);
262262
}
263263

264264
/* Spinlock */

0 commit comments

Comments
 (0)