projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent test failure when non-English language selected
[pspp]
/
src
/
language
/
stats
/
binomial.c
diff --git
a/src/language/stats/binomial.c
b/src/language/stats/binomial.c
index 15d0e4032a146c094e5275cd21f25cdfadc71afe..b62b4dce1375a11c11030ca299de2284141261b9 100644
(file)
--- a/
src/language/stats/binomial.c
+++ b/
src/language/stats/binomial.c
@@
-112,7
+112,7
@@
do_binomial (const struct dictionary *dict,
int width = var_get_width (var);
if (var_is_value_missing (var, value, exclude))
int width = var_get_width (var);
if (var_is_value_missing (var, value, exclude))
-
break
;
+
continue
;
if ( NULL == cat1[v].value )
{
if ( NULL == cat1[v].value )
{
@@
-158,16
+158,20
@@
binomial_execute (const struct dataset *ds,
if ( bst->category1 != SYSMIS )
{
if ( bst->category1 != SYSMIS )
{
+ int i;
union value v;
v.f = bst->category1;
union value v;
v.f = bst->category1;
- cat1->value = value_dup (&v, 0);
+ for (i = 0; i < ost->n_vars; i++)
+ cat1[i].value = value_dup (&v, 0);
}
if ( bst->category2 != SYSMIS )
{
}
if ( bst->category2 != SYSMIS )
{
+ int i;
union value v;
v.f = bst->category2;
union value v;
v.f = bst->category2;
- cat2->value = value_dup (&v, 0);
+ for (i = 0; i < ost->n_vars; i++)
+ cat2[i].value = value_dup (&v, 0);
}
if (do_binomial (dataset_dict(ds), input, bst, cat1, cat2, exclude))
}
if (do_binomial (dataset_dict(ds), input, bst, cat1, cat2, exclude))