* value.h (value_cnt_from_width): New function.
[pspp-builds.git] / src / data / variable.c
index f890746ac051c12adf355b9824c53939a0c5e1e1..768aa477835a4749f27ab816d8abec4ad4b6aa52 100644 (file)
@@ -423,7 +423,7 @@ var_is_long_string (const struct variable *v)
 size_t
 var_get_value_cnt (const struct variable *v) 
 {
-  return v->width == 0 ? 1 : DIV_RND_UP (v->width, MAX_SHORT_STRING);
+  return value_cnt_from_width (v->width);
 }
 \f
 /* Returns variable V's missing values. */