]> git.sur5r.net Git - cc65/blobdiff - src/cc65/locals.c
Fix 32/64-bit int/pointer casts
[cc65] / src / cc65 / locals.c
index d3d73d1979936e8215e200251652a37b38912637..024c1c5fc457344f559ced2e3da1964939c2b85b 100644 (file)
@@ -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