]> git.sur5r.net Git - cc65/commitdiff
Use array type declaration to avoid &-operator.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 7 Nov 2012 23:25:37 +0000 (23:25 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 7 Nov 2012 23:25:37 +0000 (23:25 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5926 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/grc65/main.c

index c22e85b4d3f43499946b6b542521c2b0e858f9d9..20a25e2127bf7145b10b5e9ce7651c787dafa798 100644 (file)
@@ -812,10 +812,10 @@ static void DoMemory (void)
         openCFile ();
 
         fprintf (outputCFile,
-            "extern void _OVERLAYADDR__;\n"
-            "extern void _OVERLAYSIZE__;\n\n"
-            "#define OVERLAY_ADDR (char*)   &_OVERLAYADDR__\n"
-            "#define OVERLAY_SIZE (unsigned)&_OVERLAYSIZE__\n\n");
+            "extern void _OVERLAYADDR__[];\n"
+            "extern void _OVERLAYSIZE__[];\n\n"
+            "#define OVERLAY_ADDR (char*)   _OVERLAYADDR__\n"
+            "#define OVERLAY_SIZE (unsigned)_OVERLAYSIZE__\n\n");
 
         if (fclose (outputCFile) != 0) {
             AbEnd ("Error closing %s: %s", outputCName, strerror (errno));