mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 00:32:08 +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 */
|
/* Read the expression we have to cast */
|
||||||
k = hie10 (lval);
|
k = hie10 (lval);
|
||||||
|
|
||||||
/* If the expression is a function, treat it as pointer-to-function */
|
/* If the expression is a function or an array, treat it as
|
||||||
if (IsTypeFunc (lval->Type)) {
|
* "pointer to type"
|
||||||
|
*/
|
||||||
|
if (IsTypeFunc (lval->Type) || IsTypeArray (lval->Type)) {
|
||||||
lval->Type = PointerTo (lval->Type);
|
lval->Type = PointerTo (lval->Type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user