From f15b8246f9e89ec3e3fdd9be970f467ab10ba838 Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Wed, 7 Nov 2012 23:25:37 +0000 Subject: [PATCH] Use array type declaration to avoid &-operator. git-svn-id: svn://svn.cc65.org/cc65/trunk@5926 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/grc65/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)); -- 2.39.5