X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fparse_entry.c;h=f8cca8b5747824f6a551c0b4d92a46b08757bf7c;hp=186c6f02ce1520d0aa0827a1d2573ce0a379fc31;hb=9435f97aa77afd52592028bde9dbd3f60a823fc6;hpb=97df2f335617625b7355c04e46175e316ef02544 diff --git a/ncurses/tinfo/parse_entry.c b/ncurses/tinfo/parse_entry.c index 186c6f02..f8cca8b5 100644 --- a/ncurses/tinfo/parse_entry.c +++ b/ncurses/tinfo/parse_entry.c @@ -47,7 +47,7 @@ #include #include -MODULE_ID("$Id: parse_entry.c,v 1.96 2019/03/16 23:31:40 tom Exp $") +MODULE_ID("$Id: parse_entry.c,v 1.97 2019/08/03 23:10:38 tom Exp $") #ifdef LINT static short const parametrized[] = @@ -530,9 +530,12 @@ _nc_parse_entry(ENTRY * entryp, int literal, bool silent) break; case NUMBER: +#if !NCURSES_EXT_NUMBERS if (_nc_curr_token.tk_valnumber > MAX_NUMBER) { entryp->tterm.Numbers[entry_ptr->nte_index] = MAX_NUMBER; - } else { + } else +#endif + { entryp->tterm.Numbers[entry_ptr->nte_index] = (NCURSES_INT2) _nc_curr_token.tk_valnumber; }