From 78342fa82c3d7e6c9b586cfacbf229d1642860ed Mon Sep 17 00:00:00 2001 From: acqn Date: Mon, 20 Jul 2020 20:40:41 +0800 Subject: [PATCH] Fix for "auto" variables made "static" with the "-Cl" options. --- src/cc65/locals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/locals.c b/src/cc65/locals.c index 9f8ee86ef..0007879d8 100644 --- a/src/cc65/locals.c +++ b/src/cc65/locals.c @@ -340,7 +340,7 @@ static void ParseAutoDecl (Declaration* Decl) LoadExpr (CF_NONE, &Expr); /* Store the value into the variable */ - g_putstatic (TypeOf (Sym->Type), DataLabel, 0); + g_putstatic (CF_STATIC | TypeOf (Sym->Type), DataLabel, 0); } /* Mark the variable as referenced */