]> git.sur5r.net Git - cc65/blobdiff - src/cc65/locals.c
Merge https://github.com/cc65/cc65
[cc65] / src / cc65 / locals.c
index d0aab7f9c639168e52e8dbdad809b62e716418a6..02155f412b8a84c916616e06e953e2d5fe6152b9 100644 (file)
@@ -275,8 +275,9 @@ static void ParseAutoDecl (Declaration* Decl)
             ** We abuse the Collection somewhat by using it to store line
             ** numbers.
             */
-            CollReplace (&CurrentFunc->LocalsBlockStack, (void *)(long)GetCurrentLine (),
-                CollCount (&CurrentFunc->LocalsBlockStack) - 1);
+            CollReplace (&CurrentFunc->LocalsBlockStack,
+                    (void *)(size_t)GetCurrentLine (),
+                    CollCount (&CurrentFunc->LocalsBlockStack) - 1);
 
         } else {
             /* Non-initialized local variable. Just keep track of