refacotring 2?
[pspp] / src / language / stats / t-test-one-sample.c
index 20914c9223fa2bc67eefc72ffb730377b5727a66..14eca1b11cd628f9bf4d69ea1634c5c987ecd7d9 100644 (file)
@@ -167,7 +167,7 @@ one_sample_run (const struct tt *tt, double testval, struct casereader *reader)
 
   struct casereader *r = casereader_clone (reader);
   struct ccase *c;
-  for ( ; (c = casereader_read (r) ); case_unref (c))
+  for (; (c = casereader_read (r)); case_unref (c))
     {
       double w = dict_get_case_weight (tt->dict, c, NULL);
       for (size_t i = 0; i < os.n_stats; i++)
@@ -175,7 +175,7 @@ one_sample_run (const struct tt *tt, double testval, struct casereader *reader)
           const struct per_var_stats *per_var_stats = &os.stats[i];
          const struct variable *var = per_var_stats->var;
          const union value *val = case_data (c, var);
-         if (var_is_value_missing (var, val, tt->exclude))
+         if (var_is_value_missing (var, val) & tt->exclude)
            continue;
 
          moments_pass_one (per_var_stats->mom, val->f, w);
@@ -184,7 +184,7 @@ one_sample_run (const struct tt *tt, double testval, struct casereader *reader)
   casereader_destroy (r);
 
   r = reader;
-  for ( ; (c = casereader_read (r) ); case_unref (c))
+  for (; (c = casereader_read (r)); case_unref (c))
     {
       double w = dict_get_case_weight (tt->dict, c, NULL);
       for (size_t i = 0; i < os.n_stats; i++)
@@ -192,7 +192,7 @@ one_sample_run (const struct tt *tt, double testval, struct casereader *reader)
           struct per_var_stats *per_var_stats = &os.stats[i];
          const struct variable *var = per_var_stats->var;
          const union value *val = case_data (c, var);
-         if (var_is_value_missing (var, val, tt->exclude))
+         if (var_is_value_missing (var, val) & tt->exclude)
            continue;
 
          moments_pass_two (per_var_stats->mom, val->f, w);