Skip to content

Commit b931b48

Browse files
committed
Fix void pointer comparisons
1 parent ea120b7 commit b931b48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎libcc2rs/src/void.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ where
3333
}
3434

3535
fn equals(&self, other: &dyn ErasedPtr) -> bool {
36-
other.as_any().downcast_ref::<Ptr<T>>() == Some(self)
36+
other.as_bytes() == self.as_bytes()
3737
}
3838

3939
fn is_null(&self) -> bool {

0 commit comments

Comments
 (0)