aboutsummaryrefslogtreecommitdiff
path: root/unprotbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-19 04:02:01 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-19 04:02:01 -0400
commit8ea53b7cae9fedf9432e9c83008597dbdb34f8d3 (patch)
tree78c969bc94637fd061c0ecfc48aa13ee5480f7db /unprotbas.c
parent90eb3855b5d847e78af0ac4d296660604979f98e (diff)
downloadbw-atari8-tools-8ea53b7cae9fedf9432e9c83008597dbdb34f8d3.tar.gz
unprotbas: fix thinko in variable name generation.
Diffstat (limited to 'unprotbas.c')
-rw-r--r--unprotbas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unprotbas.c b/unprotbas.c
index bef530f..8dc6844 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -304,8 +304,8 @@ int rebuild_vntable(int write) {
} else {
varname -= 26;
if(write) {
- data[vp++] = 'A' + ((varname - 26) / 9);
- data[vp] = ('1' + ((varname - 26) % 9));
+ data[vp++] = 'A' + varname / 9;
+ data[vp] = '1' + varname % 9;
}
size += 2;
}