1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 15:05:14 +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:
cuz 2002-12-17 11:39:02 +00:00
parent 803c1c0184
commit 421c8771dc

View File

@ -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);
}