Skip to content

Commit 1152f04

Browse files
Update test_distribution_uniform.fypp
1 parent c331d67 commit 1152f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/stats/test_distribution_uniform.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ program test_distribution_uniform
8282
end do
8383
chisq = 0.0_dp
8484
expct = num / 1000
85-
do i = 0, 999
85+
do i = 0, array_size - 1
8686
chisq = chisq + (freq(i) - expct) ** 2 / expct
8787
end do
8888
write(*,*) "The critical values for chi-squared with 1000 d. of f. are" &

0 commit comments

Comments
 (0)