Truncate long format spec strings before using them (#1299)

Fixes #1293
This commit is contained in:
Sylvie
2024-02-18 08:27:03 -05:00
committed by GitHub
parent a5ceaa3664
commit ef0d973187
5 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
DEF n EQU 42
; the format spec is truncated to "000...009", omitting the "x", so this prints "000000042" not "00000002a"
PRINTLN "{000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009x:n}"