summaryrefslogtreecommitdiff
path: root/chapter24/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'chapter24/src/main/java/com')
-rw-r--r--chapter24/src/main/java/com/seaofnodes/simple/type/Type.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter24/src/main/java/com/seaofnodes/simple/type/Type.java b/chapter24/src/main/java/com/seaofnodes/simple/type/Type.java
index 2d5a6d04..fd474a84 100644
--- a/chapter24/src/main/java/com/seaofnodes/simple/type/Type.java
+++ b/chapter24/src/main/java/com/seaofnodes/simple/type/Type.java
@@ -216,7 +216,7 @@ public class Type /*implements Cloneable*/ {
}
// Overridden in subclasses; subclass can assume "this!=t" and java classes are same
boolean eq(Type t) { return this==t; }
- boolean cycle_eq(Type t) { assert _type < TCYCLIC; return eq(t); }
+ boolean cycle_eq(Type t) { assert _type < TCYCLIC; return _type==t._type && eq(t); }
// A pair of uids
int pid( Type that ) {
return _uid < that._uid ? (_uid<<16 | that._uid) : (that._uid<<16 | _uid);