summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-10-13 14:37:32 -0700
committerHarvey Harrison <[email protected]>2012-10-13 14:37:32 -0700
commit898f62a51ff32bec12c7839593bb6ed3f737a022 (patch)
tree53d259798db79996a683d173abc5fbaefc0e43be /src/java/com/jogamp
parent1709c545c401042be2aa2305abcb3e41e44f74ba (diff)
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 <[email protected]>
Diffstat (limited to 'src/java/com/jogamp')
-rw-r--r--src/java/com/jogamp/gluegen/cgram/types/Type.java2
1 files changed, 1 insertions, 1 deletions
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));
}