Use array type declaration to avoid &-operator.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5926 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -812,10 +812,10 @@ static void DoMemory (void)
|
|||||||
openCFile ();
|
openCFile ();
|
||||||
|
|
||||||
fprintf (outputCFile,
|
fprintf (outputCFile,
|
||||||
"extern void _OVERLAYADDR__;\n"
|
"extern void _OVERLAYADDR__[];\n"
|
||||||
"extern void _OVERLAYSIZE__;\n\n"
|
"extern void _OVERLAYSIZE__[];\n\n"
|
||||||
"#define OVERLAY_ADDR (char*) &_OVERLAYADDR__\n"
|
"#define OVERLAY_ADDR (char*) _OVERLAYADDR__\n"
|
||||||
"#define OVERLAY_SIZE (unsigned)&_OVERLAYSIZE__\n\n");
|
"#define OVERLAY_SIZE (unsigned)_OVERLAYSIZE__\n\n");
|
||||||
|
|
||||||
if (fclose (outputCFile) != 0) {
|
if (fclose (outputCFile) != 0) {
|
||||||
AbEnd ("Error closing %s: %s", outputCName, strerror (errno));
|
AbEnd ("Error closing %s: %s", outputCName, strerror (errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user