[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/moments.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/moments.c |
Date: |
Wed, 26 Oct 2005 01:07:23 -0400 |
Index: pspp/src/moments.c
diff -u pspp/src/moments.c:1.6 pspp/src/moments.c:1.7
--- pspp/src/moments.c:1.6 Sun Jul 31 21:42:46 2005
+++ pspp/src/moments.c Wed Oct 26 05:06:14 2005
@@ -523,8 +523,8 @@
if (*cnt >= cap)
{
cap = 2 * (cap + 8);
- *values = xrealloc (*values, sizeof **values * cap);
- *weights = xrealloc (*weights, sizeof **weights * cap);
+ *values = xnrealloc (*values, cap, sizeof **values);
+ *weights = xnrealloc (*weights, cap, sizeof **weights);
}
(*values)[*cnt] = value;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] Changes to pspp/src/moments.c,
Ben Pfaff <=