X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcount.c;h=af9642b8a233d2cb65bb914737cd391a417089da;hb=7dc203206d3f3172474a4ec0f4dcab5364f4ce26;hp=35021f09e3589d8055c240d528711dcb0ef73d5f;hpb=b321086267ad1014dc5d09886396cde30f094437;p=pspp diff --git a/src/count.c b/src/count.c index 35021f09e3..af9642b8a2 100644 --- a/src/count.c +++ b/src/count.c @@ -244,13 +244,13 @@ parse_numeric_criteria (struct counting * c) } cur = &c->crit.n[n++]; - if (token == T_NUM) + if (lex_is_number ()) { cur->a = tokval; lex_get (); if (lex_match_id ("THRU")) { - if (token == T_NUM) + if (lex_is_number ()) { if (!lex_force_num ()) return 0; @@ -282,7 +282,7 @@ parse_numeric_criteria (struct counting * c) { if (!lex_force_match_id ("THRU")) return 0; - if (token == T_NUM) + if (lex_is_number ()) { cur->type = CNT_LOW; cur->a = tokval;