local variables.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5650
b7a2c559-68d2-44c3-8de9-
860c34a00d81
-static void ParseAutoDecl (Declaration* Decl)
+static void ParseAutoDecl (Declaration* Decl)
/* Parse the declaration of an auto variable. */
{
unsigned Flags;
} else {
+ /* Get the size of the variable */
+ Size = SizeOf (Decl->Type);
+
/* Allocate a label and space for the variable in the BSS segment */
- AllocStorage (DataLabel, g_usebss, SizeOf (Sym->Type));
+ AllocStorage (DataLabel, g_usebss, Size);
}