Allow RANK grouping variables to be strings. Fixes bug #18533.
[pspp] / src / language / dictionary / formats.c
index 34599e6b22463195d1e661611b5f9e6d3a9cf141..a90f46e8b8efe6f4e4ce9f7efa9ca2b27572f450 100644 (file)
@@ -1,6 +1,5 @@
 /* PSPP - computes sample statistics.
    Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
-   Written by Ben Pfaff <blp@gnu.org>.
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -94,7 +93,7 @@ internal_cmd_formats (struct lexer *lexer, struct dataset *ds, int which)
        }
       if (!parse_format_specifier (lexer, &f)
           || !fmt_check_output (&f)
-          || !fmt_check_type_compat (&f, NUMERIC))
+          || !fmt_check_type_compat (&f, VAR_NUMERIC))
        goto fail;
 
       if (!lex_match (lexer, ')'))