Commit 00df96b7 authored by Zixian Cai's avatar Zixian Cai

Fix nullity check for ObjectReference

parent fbfe7dba
...@@ -319,7 +319,7 @@ impl ObjectReference { ...@@ -319,7 +319,7 @@ impl ObjectReference {
/// is this object reference null reference? /// is this object reference null reference?
#[inline(always)] #[inline(always)]
pub fn is_null(&self) -> bool { pub fn is_null(&self) -> bool {
self.0 != 0 self.0 == 0
} }
/// returns the ObjectReference /// returns the ObjectReference
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment