From 4c94b54f1043a6c2f359ffffdad75a0a494175f2 Mon Sep 17 00:00:00 2001 From: Luke Ceddia Date: Tue, 23 Oct 2018 21:23:13 +1100 Subject: [PATCH] redim _preserve --- source/qb64.bas | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/source/qb64.bas b/source/qb64.bas index ee3c54da2..5e15f749b 100644 --- a/source/qb64.bas +++ b/source/qb64.bas @@ -13078,20 +13078,33 @@ FUNCTION allocarray (n2$, elements$, elementsize, udt) f12$ = f12$ + CRLF + "static ptrszint tmp_long2;" 'free any qbs strings which will be lost in the realloc - f12$ = f12$ + CRLF + "tmp_long=" + elesizestr$ + ";" - f12$ = f12$ + CRLF + "if (tmp_long