From 898f62a51ff32bec12c7839593bb6ed3f737a022 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sat, 13 Oct 2012 14:37:32 -0700 Subject: gluegen: fix equals comparison in cgrammer Type class name was being compared to itself, rather than the name of the type we are comparing, looks like a simple typo. Signed-off-by: Harvey Harrison --- src/java/com/jogamp/gluegen/cgram/types/Type.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/java/com/jogamp') diff --git a/src/java/com/jogamp/gluegen/cgram/types/Type.java b/src/java/com/jogamp/gluegen/cgram/types/Type.java index 3692898..bd41aec 100644 --- a/src/java/com/jogamp/gluegen/cgram/types/Type.java +++ b/src/java/com/jogamp/gluegen/cgram/types/Type.java @@ -194,7 +194,7 @@ public abstract class Type implements Cloneable { return false; } Type t = (Type) arg; - return (((name == null ? t.name == null : name.equals(t.name)) || (name != null && name.equals(name))) && + return (((name == null ? t.name == null : name.equals(t.name)) || (name != null && name.equals(t.name))) && (size == t.size) && (cvAttributes == t.cvAttributes)); } -- cgit v1.2.3