Add even more expression tests and fix the bugs they found.
[pspp-builds.git] / src / aggregate.c
index a2569837eea9d5e3c0cca06d30262f5b5276a104..3037a150fbb07e92dea17ec284b42302d042a19b 100644 (file)
@@ -450,7 +450,7 @@ parse_aggregate_functions (struct agr_proc *agr)
                    arg[i].c = xstrdup (ds_c_str (&tokstr));
                    type = ALPHA;
                  }
-               else if (token == T_NUM)
+               else if (lex_is_number ())
                  {
                    arg[i].f = tokval;
                    type = NUMERIC;