First step in making struct variable opaque: the boring mechanical
[pspp-builds.git] / src / data / missing-values.c
index d3b872e049f3d9fa9be29eb351d4d5810f290008..8976abc16eb41d1e345ed89e988b3ea84fd4ec08 100644 (file)
@@ -328,7 +328,7 @@ void
 mv_resize (struct missing_values *mv, int width) 
 {
   assert (mv_is_resizable (mv, width));
-  if (width > mv->width) 
+  if (width > mv->width && mv->type != MV_NONE
     {
       int i;
       
@@ -437,5 +437,5 @@ bool
 mv_is_value_system_missing (const struct missing_values *mv,
                             const union value *v)
 {
-  return mv->width == 0 ? v->f == SYSMIS : false;
+  return mv->width == 0 && v->f == SYSMIS;
 }