aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-07 16:46:50 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-07 16:46:50 -0400
commitfd0a11afe23e34c223420009467c3ced750416d5 (patch)
treec5d97e4c197ff99a604f823b2f0dc93700dcab36
parent7aaf2ab9ae5325569907657f82e4eb30fa83d97b (diff)
downloadbw-atari8-tools-fd0a11afe23e34c223420009467c3ced750416d5.tar.gz
whichbas: fix bug in $PUT/BLOAD logic.
-rw-r--r--whichbas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/whichbas.c b/whichbas.c
index 6cb21c2..75867e1 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -372,7 +372,7 @@ CALLBACK(handle_end_stmt) {
if(comma_count) {
/* multiple args */
remove_type(BT_BXL_BXE);
- } else if(program[last_cmd + 1] == OP_STRCONST) {
+ } else if(program[last_cmd_pos + 1] == OP_STRCONST) {
/* one arg, string const. XXX: check var type */
remove_type(BT_TURBO);
}