From: cuz Date: Tue, 30 May 2000 17:40:38 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~3497 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a679b3a20856698c60afa7ed7e80c256e438fe3;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@15 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/stmt.c b/src/cc65/stmt.c index d04dc3064..d6560463a 100644 --- a/src/cc65/stmt.c +++ b/src/cc65/stmt.c @@ -497,7 +497,7 @@ static void tableswitch (struct expent* eval) g_switch (flags); /* First entry is negative of label count */ - g_defdata (CF_INT, -((int)lcount)-1, 0); + g_defdata (CF_INT | CF_CONST, -((int)lcount)-1, 0); /* Create the case selector table */ AddCodeHint ("casetable");