1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-28 11:17:46 +00:00

Stop STATIC arrays in subroutines from segfaulting on Linux

This commit is contained in:
Luke Ceddia 2016-08-10 23:44:27 +10:00
parent f85957f84b
commit b17fda7a61
2 changed files with 2 additions and 2 deletions

View file

@ -3,5 +3,5 @@ DIM SHARED BuildNum AS STRING
Version$ = "1.000"
'BuildNum format is YYYYMMDD/id, where id is a ever-increasing
'integer. If you make a change, update the date and increase the id!
BuildNum$ = "20160807/41"
BuildNum$ = "20160811/42"

View file

@ -12983,7 +12983,7 @@ FUNCTION allocarray (n2$, elements$, elementsize)
IF autoary = 0 THEN
IF dimoption = 3 THEN 'STATIC a(100) puts creation code in main
fh = FREEFILE: OPEN tmpdir$ + "maindata.txt" FOR APPEND AS #fh: PRINT #fh, f12$: CLOSE #fh
PRINT #13, f12$
ELSE
PRINT #12, f12$
END IF