Skip to content

Commit f7a7cf0

Browse files
Geod24John-Colvin
authored andcommitted
pearsonSpearmanCov: Remove variable shadowing
1 parent 87a5fcb commit f7a7cf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/dstats/cor.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,8 +1225,8 @@ private void pearsonSpearmanCov(bool makeNewMatrix, RoR, Matrix)
12251225
break;
12261226
case CorCovType.spearman:
12271227
foreach(row; pool.parallel(normalized)) {
1228-
auto alloc = newRegionAllocator();
1229-
auto buf = alloc.uninitializedArray!(double[])(row.length);
1228+
auto localAlloc = newRegionAllocator();
1229+
auto buf = localAlloc.uninitializedArray!(double[])(row.length);
12301230
rank(row, buf);
12311231

12321232
// Need to find mean, stdev separately for every row b/c

0 commit comments

Comments
 (0)