X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmdd-writer.c;h=a0387843a235c03b1c0d9db423e0ea001476318d;hb=54b3aa8432383287c75b9baf954b7bf887126a0c;hp=b025e693b4625c572ac08beda09d691206ade99c;hpb=f4491cda2715c59495d963d0a3d8ae4518c1c13d;p=pspp diff --git a/src/data/mdd-writer.c b/src/data/mdd-writer.c index b025e693b4..a0387843a2 100644 --- a/src/data/mdd-writer.c +++ b/src/data/mdd-writer.c @@ -64,20 +64,20 @@ enum val_numeric_type static enum val_numeric_type var_get_numeric_type_ (const struct variable *var) { - const struct fmt_spec *print = var_get_print_format (var); + const struct fmt_spec print = var_get_print_format (var); if (var_get_type (var) == VAL_STRING) return VAL_STRING_TYPE; if (var_has_value_labels (var)) return VAL_CATEGORICAL_TYPE; - if (print->d > 0) + if (print.d > 0) return VAL_DECIMAL_TYPE; - if (print->type == FMT_DATETIME) + if (print.type == FMT_DATETIME) return VAL_DATETIME_TYPE; - if (print->type == FMT_F) + if (print.type == FMT_F) return VAL_INTEGER_TYPE; return VAL_CATEGORICAL_TYPE;