Skip to content

Commit 5de2689

Browse files
55: Fix bug where bool in `thread_registered` was inverted r=ltratt a=jacob-hughes This unblocks softdevteam#31. Co-authored-by: Jake Hughes <[email protected]>
2 parents ed4ec8c + 633abf0 commit 5de2689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allocator/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl GcAllocator {
162162
}
163163

164164
pub fn thread_registered() -> bool {
165-
unsafe { boehm::GC_thread_is_registered() == 0 }
165+
unsafe { boehm::GC_thread_is_registered() != 0 }
166166
}
167167

168168
pub fn allow_register_threads() {

0 commit comments

Comments
 (0)