From: Ben Pfaff Date: Fri, 2 Feb 2007 00:52:38 +0000 (+0000) Subject: Handle MAP_SYSMIS case in RECODE, which was carelessly overlooked X-Git-Tag: v0.6.0~571 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df936ae7a823634e599df091f8ae935d7842fbaa;p=pspp-builds.git Handle MAP_SYSMIS case in RECODE, which was carelessly overlooked until now. Fixes bug #18917. Thanks to John Darrington for bug report and review. --- diff --git a/src/language/xforms/ChangeLog b/src/language/xforms/ChangeLog index 8e099a96..a0952205 100644 --- a/src/language/xforms/ChangeLog +++ b/src/language/xforms/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 1 16:51:16 2007 Ben Pfaff + + * recode.c (find_src_numeric): Handle MAP_SYSMIS case, which was + carelessly overlooked until now. Fixes bug #18917. Thanks to + John Darrington for bug report and review. + Sat Dec 9 18:48:20 2006 Ben Pfaff * compute.c (struct compute_trns): Remove `fv' member, which was diff --git a/src/language/xforms/recode.c b/src/language/xforms/recode.c index 01f3bf76..7af72efa 100644 --- a/src/language/xforms/recode.c +++ b/src/language/xforms/recode.c @@ -559,6 +559,9 @@ find_src_numeric (struct recode_trns *trns, double value, struct variable *v) case MAP_RANGE: match = value >= in->x.f && value <= in->y.f; break; + case MAP_SYSMIS: + match = value == SYSMIS; + break; case MAP_ELSE: match = true; break;