]> git.sur5r.net Git - cc65/commitdiff
Forgot a cast, sorry
authorBas Wassink <b.wassink@ziggo.nl>
Sun, 24 Mar 2019 20:41:00 +0000 (21:41 +0100)
committerBas Wassink <b.wassink@ziggo.nl>
Sun, 24 Mar 2019 20:41:00 +0000 (21:41 +0100)
src/cc65/symtab.c

index 02b7f0501a8293a7ee4c4ff759b45a362c3a6bd6..56196ea5a3e82b03d441b80a971ef06e75dee932 100644 (file)
@@ -671,7 +671,7 @@ DefOrRef* AddDefOrRef (SymEntry* E, unsigned Flags)
     DOR = xmalloc (sizeof (DefOrRef));
     CollAppend (E->V.L.DefsOrRefs, DOR);
     DOR->Line = GetCurrentLine ();
-    DOR->LocalsBlockId = CollLast (&CurrentFunc->LocalsBlockStack);
+    DOR->LocalsBlockId = (long)CollLast (&CurrentFunc->LocalsBlockStack);
     DOR->Flags = Flags;
     DOR->StackPtr = StackPtr;
     DOR->Depth = CollCount (&CurrentFunc->LocalsBlockStack);