From 0996a58913591941a4bd639070f6ed512288005e Mon Sep 17 00:00:00 2001 From: Xiuwen Zheng Date: Thu, 11 Apr 2024 12:28:10 -0500 Subject: [PATCH] fix -Wvla --- DESCRIPTION | 4 ++-- NEWS | 2 +- src/genLD.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index f4c6607..98688c4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,8 +2,8 @@ Package: SNPRelate Type: Package Title: Parallel Computing Toolset for Relatedness and Principal Component Analysis of SNP Data -Version: 1.37.2 -Date: 2024-03-26 +Version: 1.37.5 +Date: 2024-04-11 Depends: R (>= 2.15), gdsfmt (>= 1.8.3) LinkingTo: gdsfmt Imports: methods diff --git a/NEWS b/NEWS index a71c579..dbe6d65 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -CHANGES IN VERSION 1.37.2 +CHANGES IN VERSION 1.37.4 ------------------------- UTILITIES diff --git a/src/genLD.cpp b/src/genLD.cpp index 87e760a..e7ff36e 100755 --- a/src/genLD.cpp +++ b/src/genLD.cpp @@ -643,8 +643,8 @@ namespace LD static void Entry_LD_SlideMat(PdThread Thread, int ThreadIndex, void *Param) { TParam_LD_SlideMat *pm = (TParam_LD_SlideMat*)Param; - C_Int64 StartIndex[pm->Num_Thread]; - Array_SplitJobs(pm->Num_Thread, pm->TotalCount, StartIndex, + vector StartIndex(pm->Num_Thread); + Array_SplitJobs(pm->Num_Thread, pm->TotalCount, &StartIndex[0], Array_Thread_MatCnt); // starting point