Skip to content

Commit

Permalink
Merge #55
Browse files Browse the repository at this point in the history
55: Fix bug where bool in `thread_registered` was inverted r=ltratt a=jacob-hughes

This unblocks softdevteam/alloy#31. 

Co-authored-by: Jake Hughes <jh@jakehughes.uk>
  • Loading branch information
bors[bot] and jacob-hughes authored Apr 9, 2021
2 parents ed4ec8c + 633abf0 commit 5de2689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allocator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl GcAllocator {
}

pub fn thread_registered() -> bool {
unsafe { boehm::GC_thread_is_registered() == 0 }
unsafe { boehm::GC_thread_is_registered() != 0 }
}

pub fn allow_register_threads() {
Expand Down

0 comments on commit 5de2689

Please sign in to comment.