X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fwilcoxon-sig.c;h=a9d9b70dbc9b94c5241365a2cf5580f5b78fd435;hb=06ac0c2d623e9ae54c3e22a2d6740219ab357b21;hp=17484f1411d51adb170fd431c4b6193dce769f85;hpb=63d7f2b943e987f11fc913a47031b16533382b46;p=pspp diff --git a/src/math/wilcoxon-sig.c b/src/math/wilcoxon-sig.c index 17484f1411..a9d9b70dbc 100644 --- a/src/math/wilcoxon-sig.c +++ b/src/math/wilcoxon-sig.c @@ -93,7 +93,6 @@ count_sums_to_W (unsigned long int n, long int w) and using int will save some memory on 64-bit systems. */ unsigned long int total; unsigned long int max; - int *array; assert (w >= 0); assert (n < CHAR_BIT * sizeof (unsigned long int)); @@ -106,7 +105,7 @@ count_sums_to_W (unsigned long int n, long int w) else if (n == 1) return 1; - array = xcalloc (w + 1, sizeof *array); + int *array = XCALLOC (w + 1, int); array[w] = 1; max = w;