Fix further bug in NPAR BINOMIAL
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Jan 2009 22:54:56 +0000 (07:54 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Jan 2009 22:54:56 +0000 (07:54 +0900)
Change "break" to "continue", so that if a binomial
variable was missing, only this single variable is skipped
rather than all subsequent ones.  Thanks to Ben Pfaff for
reporting this.

src/language/stats/binomial.c

index 65fb22e624ab473fc09e7e434c01ec9524f2deeb..b62b4dce1375a11c11030ca299de2284141261b9 100644 (file)
@@ -112,7 +112,7 @@ do_binomial (const struct dictionary *dict,
           int width = var_get_width (var);
 
          if (var_is_value_missing (var, value, exclude))
-           break;
+           continue;
 
          if ( NULL == cat1[v].value )
            {