projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement lots of distributions in MATRIX.
[pspp]
/
src
/
language
/
stats
/
autorecode.c
diff --git
a/src/language/stats/autorecode.c
b/src/language/stats/autorecode.c
index cd1a220affcc0d9a3a6a243350b73ee2f9c9c087..1a74b1e4a9e4e3365e5fc77ca0fcbeb05147a654 100644
(file)
--- a/
src/language/stats/autorecode.c
+++ b/
src/language/stats/autorecode.c
@@
-132,7
+132,7
@@
cmd_autorecode (struct lexer *lexer, struct dataset *ds)
bool print = false;
/* Create procedure. */
bool print = false;
/* Create procedure. */
- struct autorecode_pgm *arc =
xzalloc (sizeof *arc
);
+ struct autorecode_pgm *arc =
XZALLOC (struct autorecode_pgm
);
arc->blank_valid = true;
/* Parse variable lists. */
arc->blank_valid = true;
/* Parse variable lists. */
@@
-387,7
+387,7
@@
cmd_autorecode (struct lexer *lexer, struct dataset *ds)
old_values->root, pivot_value_new_value (
&item->from, item->width,
(item->width
old_values->root, pivot_value_new_value (
&item->from, item->width,
(item->width
- ? &(struct fmt_spec) {
FMT_F, item->width, 0
}
+ ? &(struct fmt_spec) {
.type = FMT_F, .w = item->width
}
: &spec->format),
dict_get_encoding (dict)));
pivot_table_put2 (table, 0, old_value_idx,
: &spec->format),
dict_get_encoding (dict)));
pivot_table_put2 (table, 0, old_value_idx,
@@
-568,7
+568,7
@@
autorecode_trns_proc (void *arc_, struct ccase **c,
size_t hash = value_hash (value, width, 0);
const struct arc_item *item = find_arc_item (spec->items, value, width,
hash);
size_t hash = value_hash (value, width, 0);
const struct arc_item *item = find_arc_item (spec->items, value, width,
hash);
-
case_data_rw (*c, spec->dst)->f
= item ? item->to : SYSMIS;
+
*case_num_rw (*c, spec->dst)
= item ? item->to : SYSMIS;
}
return TRNS_CONTINUE;
}
return TRNS_CONTINUE;