[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/examine.q
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/examine.q |
Date: |
Wed, 26 Oct 2005 01:06:55 -0400 |
Index: pspp/src/examine.q
diff -u pspp/src/examine.q:1.30 pspp/src/examine.q:1.31
--- pspp/src/examine.q:1.30 Mon Oct 24 02:51:32 2005
+++ pspp/src/examine.q Wed Oct 26 05:06:14 2005
@@ -394,7 +394,7 @@
for ( i = 0 ; i < subc_list_double_count(l) ; ++i )
{
- struct percentile *p = xmalloc (sizeof (struct percentile));
+ struct percentile *p = xmalloc (sizeof *p);
p->p = subc_list_double_at(l,i);
p->v = SYSMIS;
@@ -511,7 +511,7 @@
assert(n_dependent_vars);
- totals = xmalloc( sizeof(struct metrics) * n_dependent_vars);
+ totals = xnmalloc (n_dependent_vars, sizeof *totals);
if ( lex_match(T_BY))
{
@@ -534,7 +534,7 @@
examine_parse_independent_vars(struct cmd_examine *cmd)
{
int success;
- struct factor *sf = xmalloc(sizeof(struct factor));
+ struct factor *sf = xmalloc (sizeof *sf);
if ((token != T_ID || dict_lookup_var (default_dict, tokid) == NULL)
&& token != T_ALL)
@@ -1858,7 +1858,7 @@
{
/* We have to cache the detrended data, beacause we need to
find its limits before we can plot it */
- double *d_data = xmalloc (m->n_data * sizeof(double));
+ double *d_data = xnmalloc (m->n_data, sizeof *d_data);
double d_max = -DBL_MAX;
double d_min = DBL_MAX;
for ( i = 0 ; i < m->n_data; ++i )