]> git.sur5r.net Git - cc65/blobdiff - src/cc65/goto.c
Add checks for risky goto statements.
[cc65] / src / cc65 / goto.c
index 6e282c636adad4ec08adca9da0cabfb78dad94de..3b1d243e76d05b420c2000f800668e85ad74368c 100644 (file)
@@ -64,7 +64,7 @@ void GotoStatement (void)
         SymEntry* Entry = AddLabelSym (CurTok.Ident, SC_REF);
 
         /* Jump to the label */
-        g_jump (Entry->V.Label);
+        g_jump (Entry->V.L.Label);
     }
 
     /* Eat the label name */
@@ -80,7 +80,7 @@ void DoLabel (void)
     SymEntry* Entry = AddLabelSym (CurTok.Ident, SC_DEF);
 
     /* Emit the jump label */
-    g_defcodelabel (Entry->V.Label);
+    g_defcodelabel (Entry->V.L.Label);
 
     /* Eat the ident and colon */
     NextToken ();