From: ol.sc Date: Wed, 7 Nov 2012 23:25:37 +0000 (+0000) Subject: Use array type declaration to avoid &-operator. X-Git-Tag: V2.14~148 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f15b8246f9e89ec3e3fdd9be970f467ab10ba838;p=cc65 Use array type declaration to avoid &-operator. git-svn-id: svn://svn.cc65.org/cc65/trunk@5926 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/grc65/main.c b/src/grc65/main.c index c22e85b4d..20a25e212 100644 --- a/src/grc65/main.c +++ b/src/grc65/main.c @@ -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));