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:
parent
f85957f84b
commit
b17fda7a61
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue