This makes debugging easier.
writer = autopaging_writer_create (
casereader_get_proto (grouper->reader));
- case_ref (group_case);
- casewriter_write (writer, group_case);
+
+ casewriter_write (writer, case_ref (group_case));
while ((tmp = casereader_peek (grouper->reader, 0)) != NULL
&& grouper->same_group (group_case, tmp, grouper->aux))
if ( var_is_value_missing (var, case_data (cx, var), exclude))
continue;
- case_unref (prev_cx);
-
if ( prev_value == -DBL_MAX || prev_value == this_value)
c_i += weight;
c_i = weight;
}
+ case_unref (prev_cx);
cc_i += weight;
prev_value = this_value;
prev_cx = case_ref (cx);
g_return_val_if_fail (ds, FALSE);
g_return_val_if_fail (ds->datasheet, FALSE);
- case_ref (cc);
+ cc = case_ref (cc);
result = datasheet_insert_rows (ds->datasheet, posn, &cc, 1);
if ( result )