X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcasefilter.c;h=267a695ac2bfeca4be9c6eae27cb99c0a2f5dcb4;hb=08e4a9535a7e1de9cc4b6e619e70805ab951b323;hp=1494133359d2b3aaa3608269316f82190f215953;hpb=946282d65fa0142e38d10f78d2c699dacf95300e;p=pspp diff --git a/src/data/casefilter.c b/src/data/casefilter.c index 1494133359..267a695ac2 100644 --- a/src/data/casefilter.c +++ b/src/data/casefilter.c @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 2006 Free Software Foundation, Inc. - Written by John Darrington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -58,9 +57,9 @@ casefilter_variable_missing (const struct casefilter *filter, const struct ccase *c, const struct variable *var) { - const union value *val = case_data (c, var->fv) ; + const union value *val = case_data (c, var) ; - if ( var_get_type (var) != ALPHA && val->f == SYSMIS ) + if ( var_is_numeric (var) && val->f == SYSMIS ) return true; if ( filter->exclude_user_missing && @@ -98,7 +97,7 @@ casefilter_create (bool excl, struct variable **vars, int n_vars) filter considers. N_VARS is the size of VARS */ void casefilter_add_variables (struct casefilter *filter, - struct variable **vars, int n_vars) + struct variable *const *vars, int n_vars) { int i; @@ -118,5 +117,3 @@ casefilter_destroy (struct casefilter *filter) free (filter->vars); free (filter); } - -