aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-09 03:18:20 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-09 03:18:20 -0400
commitc9d130ecc88ac8399f6cbdc29acaa9d9318441c5 (patch)
tree478d9097ea82e262ed41a13a6f6b0c09d7497f0e
parentf7434033acc7555a30ddc0fd88981cba72c9bac2 (diff)
downloadbw-atari8-tools-c9d130ecc88ac8399f6cbdc29acaa9d9318441c5.tar.gz
whichbas: fix bug in FRAC/DPEEK logic.
-rw-r--r--whichbas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/whichbas.c b/whichbas.c
index fb1d0c6..035afb5 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -526,7 +526,7 @@ CALLBACK(handle_op) {
1st arg is a constant or a numeric variable, but not if the
1st arg is an expression or an array element. */
int has2 = 0;
- if(nexttok2 == OP_NUMCONST || nexttok == OP_HEXCONST) {
+ if(nexttok2 == OP_NUMCONST || nexttok2 == OP_HEXCONST) {
if(program[pos + 9] == OP_ARR_COMMA)
has2 = 1;
} else if(nexttok2 >= 0x80 && program[pos + 3] == OP_ARR_COMMA) {