X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fwilcoxon-sig.c;h=a1b43dae506429f70833ddb2c9ae53f3356c707c;hb=c972eebe3286130ba9af8b0520a35a42a8d5ef75;hp=d9a4bcae43d0020474cedb02ad60985f218ff5a4;hpb=9a331fe64eb814ae5c1322e21717a04fb254bf65;p=pspp diff --git a/src/math/wilcoxon-sig.c b/src/math/wilcoxon-sig.c index d9a4bcae43..a1b43dae50 100644 --- a/src/math/wilcoxon-sig.c +++ b/src/math/wilcoxon-sig.c @@ -105,7 +105,7 @@ count_sums_to_W (unsigned long int n, unsigned long int w) else if (n == 1) return 1; - array = xcalloc (sizeof *array, w + 1); + array = xcalloc (w + 1, sizeof *array); array[w] = 1; max = w;