]> Repositorios git - scryer-prolog.git/commitdiff
revert is_undefined back to ref match, re: #44
authorMark Thom <[email protected]>
Thu, 23 Aug 2018 00:24:49 +0000 (18:24 -0600)
committerMark Thom <[email protected]>
Thu, 23 Aug 2018 00:28:40 +0000 (18:28 -0600)
src/prolog/ast.rs

index 63aefed611d1832bb182e9967bc7399f1361c4cc..23425e9a0c01cd5a092cd2b13cd378f7f7519389 100644 (file)
@@ -1575,7 +1575,7 @@ impl CodeIndex {
     pub fn is_undefined(&self) -> bool {
         let index_ptr = &self.0.borrow().0;
 
-        if let IndexPtr::Undefined = index_ptr {
+        if let &IndexPtr::Undefined = index_ptr {
             true
         } else {
             false