mirror of
https://github.com/cc65/cc65.git
synced 2025-01-13 09:31:53 +00:00
Test for pointer must use IsTypePtr not a direct compare. The later may (and
does) fail because of qualifiers. git-svn-id: svn://svn.cc65.org/cc65/trunk@3898 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
7e9b6e7311
commit
63943c3f44
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user