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:
parent
fa6dae8fa9
commit
f15b8246f9
1 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue