소스 검색

Added support for negated integer equivalence check in Leaf nodes.

Taddeus Kroes 14 년 전
부모
커밋
39145aafea
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/node.py

+ 2 - 1
src/node.py

@@ -326,7 +326,8 @@ class ExpressionLeaf(Leaf, ExpressionBase):
         other_type = type(other)
 
         if other_type in TYPE_MAP:
-            return TYPE_MAP[other_type] == self.type and self.value == other
+            return TYPE_MAP[other_type] == self.type \
+                   and self.actual_value() == other
 
         return self.negated == other.negated and self.type == other.type \
                and self.value == other.value