Skip to content

Commit 1f20a9c

Browse files
authored
Merge pull request #528 from boriel/bugfix/let_array_string_const_broken
Fix a bug with LETARRAYSTR
2 parents 8da650f + 0bb8a18 commit 1f20a9c

6 files changed

Lines changed: 1722 additions & 90 deletions

File tree

src/api/global_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
# ----------------------------------------------------------------------
131131
# LABEL Labels namespace
132132
# ----------------------------------------------------------------------
133-
LABELS_NAMESPACE = '.LABEL'
133+
LABELS_NAMESPACE = '.LABEL' # *MUST* start with a DOT (.)
134134

135135
# ----------------------------------------------------------------------
136136
# USER DATA LABELS

src/arch/zx48k/backend/__array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def _astorestr(ins):
353353
# Integer does not make sense here (unless it's a ptr)
354354
raise InvalidICError(str(ins))
355355

356-
elif op[0] == '_': # an identifier
356+
elif op[0] in ('.', '_'): # an identifier
357357
temporal = False # Global var is not a temporary string
358358

359359
if indirect:

0 commit comments

Comments
 (0)