From: Brad Smith Date: Wed, 1 May 2019 06:45:51 +0000 (-0400) Subject: goto.c warning fix for implicit truncation X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a5fa6dc512221490c5547505668a78308f904a8;p=cc65 goto.c warning fix for implicit truncation --- diff --git a/src/cc65/goto.c b/src/cc65/goto.c index 10293642f..f1fb725d2 100644 --- a/src/cc65/goto.c +++ b/src/cc65/goto.c @@ -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) {