]> git.sur5r.net Git - cc65/commitdiff
When generating forward references to functions, use the default code address
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 22 Feb 2009 16:38:07 +0000 (16:38 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 22 Feb 2009 16:38:07 +0000 (16:38 +0000)
size.

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

src/cc65/datatype.c

index fdc242d9b5dd4c360e79192e73eca6941e0b8dc9..418ecfc46cdc41675e56e4849f4076d617fe733f 100644 (file)
@@ -187,7 +187,7 @@ Type* GetImplicitFuncType (void)
     F->TagTab = &EmptySymTab;
 
     /* Fill the type string */
     F->TagTab = &EmptySymTab;
 
     /* Fill the type string */
-    T[0].C   = T_FUNC;
+    T[0].C   = T_FUNC | CodeAddrSizeQualifier ();
     T[0].A.P = F;
     T[1].C   = T_INT;
     T[2].C   = T_END;
     T[0].A.P = F;
     T[1].C   = T_INT;
     T[2].C   = T_END;