projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use XCALLOC / XZALLOC macros where reasonable
[pspp]
/
src
/
math
/
wilcoxon-sig.c
diff --git
a/src/math/wilcoxon-sig.c
b/src/math/wilcoxon-sig.c
index 17484f1411d51adb170fd431c4b6193dce769f85..a9d9b70dbc9b94c5241365a2cf5580f5b78fd435 100644
(file)
--- 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;
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));
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;
else if (n == 1)
return 1;
-
array = xcalloc (w + 1, sizeof *array
);
+
int *array = XCALLOC (w + 1, int
);
array[w] = 1;
max = w;
array[w] = 1;
max = w;