]> git.sur5r.net Git - cc65/commitdiff
Test for pointer must use IsTypePtr not a direct compare. The later may (and
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 31 Aug 2008 18:23:58 +0000 (18:23 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 31 Aug 2008 18:23:58 +0000 (18:23 +0000)
does) fail because of qualifiers.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3898 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/symtab.c

index d10a7ad0a4e5496e5f8aaa3aacb6b85fb24f8e53..0a03cabcaa0a426175e47ff3e98d9346435875af 100644 (file)
@@ -478,7 +478,7 @@ SymEntry* FindStructField (const Type* T, const char* Name)
     SymEntry* Field = 0;
 
     /* The given type may actually be a pointer to struct */
-    if (T->C == T_PTR) {
+    if (IsTypePtr (T)) {
        ++T;
     }