projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change how checking for missing values works.
[pspp]
/
src
/
language
/
xforms
/
recode.c
diff --git
a/src/language/xforms/recode.c
b/src/language/xforms/recode.c
index 4d491dd9be1462f49d46a0f0054d50e1f255d2d7..467a18652db46384e5b045a174f29d310f3fdee8 100644
(file)
--- a/
src/language/xforms/recode.c
+++ b/
src/language/xforms/recode.c
@@
-615,7
+615,7
@@
find_src_numeric (struct recode_trns *trns, double value, const struct variable
match = value == in->x.f;
break;
case MAP_MISSING:
match = value == in->x.f;
break;
case MAP_MISSING:
- match = var_is_num_missing (v, value
, MV_ANY)
;
+ match = var_is_num_missing (v, value
) != 0
;
break;
case MAP_RANGE:
match = value >= in->x.f && value <= in->y.f;
break;
case MAP_RANGE:
match = value >= in->x.f && value <= in->y.f;
@@
-676,7
+676,7
@@
find_src_string (struct recode_trns *trns, const uint8_t *value,
break;
}
case MAP_MISSING:
break;
}
case MAP_MISSING:
- match = var_is_str_missing (src_var, value
, MV_ANY)
;
+ match = var_is_str_missing (src_var, value
) != 0
;
break;
default:
NOT_REACHED ();
break;
default:
NOT_REACHED ();