]> git.sur5r.net Git - cc65/commitdiff
Another warning.
authorlaubzega <mileksmyk@gmail.com>
Sat, 29 Sep 2018 05:25:22 +0000 (22:25 -0700)
committerOliver Schmidt <ol.sc@web.de>
Tue, 2 Oct 2018 16:49:53 +0000 (18:49 +0200)
src/cc65/symtab.c

index 5ca2d496765ca1b6511d5c7207bf679b00ffa2ea..9a34de0dc02b9f2ed1352b4c6712763b4a3353df 100644 (file)
@@ -731,7 +731,7 @@ SymEntry* AddLabelSym (const char* Name, unsigned Flags)
                    has automatic storage duration? Let's emit a warning. */
                 if ((long)CollLast (AIC) != DOR->LocalsBlockId &&
                     (CollCount (AIC) >= DOR->Depth ||
-                    (long)CollLast (AIC) >= DOR->Line))
+                    (long)CollLast (AIC) >= (long)DOR->Line))
                     Warning ("Goto at line %d to label %s jumps into a block with "
                     "initialization of an object that has automatic storage duration.",
                     DOR->Line, Name);