[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/autorecode.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/autorecode.c |
Date: |
Sat, 29 Oct 2005 01:50:07 -0400 |
Index: pspp/src/autorecode.c
diff -u pspp/src/autorecode.c:1.22 pspp/src/autorecode.c:1.23
--- pspp/src/autorecode.c:1.22 Wed Oct 26 05:06:14 2005
+++ pspp/src/autorecode.c Sat Oct 29 05:50:06 2005
@@ -231,7 +231,7 @@
t->h.proc = autorecode_trns_proc;
t->h.free = autorecode_trns_free;
t->owner = pool;
- t->specs = pool_alloc (t->owner, sizeof *t->specs * arc->var_cnt);
+ t->specs = pool_nalloc (t->owner, arc->var_cnt, sizeof *t->specs);
t->spec_cnt = arc->var_cnt;
for (i = 0; i < arc->var_cnt; i++)
{
@@ -357,7 +357,7 @@
vpp = (union value **) hsh_probe (arc->src_values[i], &v);
if (*vpp == NULL)
{
- vp = pool_alloc (arc->src_values_pool, sizeof (union value));
+ vp = pool_alloc (arc->src_values_pool, sizeof *vp);
if (arc->src_vars[i]->type == NUMERIC)
vp->f = v.f;
else