]> git.sur5r.net Git - cc65/commitdiff
goto.c warning fix for implicit truncation
authorBrad Smith <bbbradsmith@users.noreply.github.com>
Wed, 1 May 2019 06:45:51 +0000 (02:45 -0400)
committerOliver Schmidt <ol.sc@web.de>
Wed, 1 May 2019 08:53:41 +0000 (10:53 +0200)
src/cc65/goto.c

index 10293642f6ba11b45e97d0a663b47f8ea2306524..f1fb725d2bc76a3f53a3c670b32ff93ae2b7221f 100644 (file)
@@ -100,7 +100,7 @@ void GotoStatement (void)
             ConsumeLBrack ();
 
             if (CurTok.Tok == TOK_ICONST) {
-                val = CurTok.IVal;
+                val = (unsigned char)CurTok.IVal;
                 NextToken ();
 
                 if (CPUIsets[CPU] & CPU_ISET_65SC02) {