remove a wrong bitwise negation

This commit is contained in:
Ralf Jung 2024-02-28 07:41:50 +01:00
parent bc76256efb
commit a676afafa5

View File

@ -354,7 +354,7 @@ fn schedule_next_pthread_tls_dtor(
state.last_key = Some(key);
trace!("Running TLS dtor {:?} on {:?} at {:?}", instance, ptr, active_thread);
assert!(
!ptr.to_target_usize(this).unwrap() != 0,
ptr.to_target_usize(this).unwrap() != 0,
"data can't be NULL when dtor is called!"
);