X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fsyntax-gen.c;fp=src%2Fui%2Fsyntax-gen.c;h=54a7845b70d44722c6b3bcb531def0556a3365fd;hb=708f2f1b12056e77b03749aa7b5931dc07819356;hp=b338bdf9c4c742dc07dc81d393a37accdc9281ec;hpb=9acce16d7852918952aff5b420ba0057019d68c2;p=pspp diff --git a/src/ui/syntax-gen.c b/src/ui/syntax-gen.c index b338bdf9c4..54a7845b70 100644 --- a/src/ui/syntax-gen.c +++ b/src/ui/syntax-gen.c @@ -149,7 +149,7 @@ syntax_gen_number (struct string *output, { assert (format == NULL || fmt_is_numeric (format->type)); if (format != NULL - && (format->type + && (fmt_get_category (format->type) & (FMT_CAT_DATE | FMT_CAT_TIME | FMT_CAT_DATE_COMPONENT))) { union value v_in, v_out;