From a92f60d48634875cd1d2c6b74d114bdc6710621b Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Sun, 13 Dec 2020 12:43:53 +0000 Subject: [PATCH] LazStats: Fix compilation with FPC 3.3.1 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7928 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../source/forms/analysis/descriptive/multxvsyunit.pas | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/lazstats/source/forms/analysis/descriptive/multxvsyunit.pas b/applications/lazstats/source/forms/analysis/descriptive/multxvsyunit.pas index b2ec2bd5c..811c3c450 100644 --- a/applications/lazstats/source/forms/analysis/descriptive/multxvsyunit.pas +++ b/applications/lazstats/source/forms/analysis/descriptive/multxvsyunit.pas @@ -100,10 +100,14 @@ var xValues: DblDyneMat = nil; yValues: DblDyneMat = nil; grps: StrDyneVec = nil; - means: array[0..1] of Double = (0.0, 0.0); - stdDevs: array[0..1] of Double = (0.0, 0.0); + means: DblDyneVec = nil; + stdDevs: DblDyneVec = nil; selected: array of Integer = nil; begin + // FPC 3.3.1 requires dynamic arrays! + SetLength(means, 2); + SetLength(stdDevs, 2); + // Get selected variables xCol := 0; yCol := 0;