mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1783 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
803c1c0184
commit
421c8771dc
@ -73,8 +73,10 @@ int TypeCast (ExprDesc* lval)
|
||||
/* Read the expression we have to cast */
|
||||
k = hie10 (lval);
|
||||
|
||||
/* If the expression is a function, treat it as pointer-to-function */
|
||||
if (IsTypeFunc (lval->Type)) {
|
||||
/* If the expression is a function or an array, treat it as
|
||||
* "pointer to type"
|
||||
*/
|
||||
if (IsTypeFunc (lval->Type) || IsTypeArray (lval->Type)) {
|
||||
lval->Type = PointerTo (lval->Type);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user