X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Flocals.c;h=024c1c5fc457344f559ced2e3da1964939c2b85b;hb=0614078198d69d3d891fe669e4703e8a60beddca;hp=d3d73d1979936e8215e200251652a37b38912637;hpb=c797b3b37674938d4ebf0e3eb0c65cbdc98427ac;p=cc65 diff --git a/src/cc65/locals.c b/src/cc65/locals.c index d3d73d197..024c1c5fc 100644 --- a/src/cc65/locals.c +++ b/src/cc65/locals.c @@ -272,10 +272,12 @@ static void ParseAutoDecl (Declaration* Decl) Sym->Flags |= SC_REF; /* Make note of auto variables initialized in current block. - We abuse the Collection somewhat by using it to store line - numbers. */ - CollReplace (&CurrentFunc->LocalsBlockStack, (void *)(long)GetCurrentLine (), - CollCount (&CurrentFunc->LocalsBlockStack) - 1); + ** We abuse the Collection somewhat by using it to store line + ** numbers. + */ + CollReplace (&CurrentFunc->LocalsBlockStack, + (void *)(size_t)GetCurrentLine (), + CollCount (&CurrentFunc->LocalsBlockStack) - 1); } else { /* Non-initialized local variable. Just keep track of