X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fparse_entry.c;fp=ncurses%2Ftinfo%2Fparse_entry.c;h=2b54f45d6d49911e5a03838057089c4c078dc689;hp=bbbfcb270ac424e7f697a79d85c887ee9fc05ece;hb=1501ae2a13db0ffd2db8404c24aa5010a88ea91b;hpb=e33150410925e7858dacebb585a9bd90db683d86 diff --git a/ncurses/tinfo/parse_entry.c b/ncurses/tinfo/parse_entry.c index bbbfcb27..2b54f45d 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.91 2017/08/26 16:13:34 tom Exp $") +MODULE_ID("$Id: parse_entry.c,v 1.92 2017/08/26 19:49:50 tom Exp $") #ifdef LINT static short const parametrized[] = @@ -217,7 +217,7 @@ valid_entryname(const char *name) { bad_tc_usage = TRUE; \ _nc_warning("Legacy termcap allows only a trailing tc= clause"); } -#define MAX_NUMBER 0x7fff /* positive shorts only */ +#define MAX_NUMBER MAX_OF_TYPE(NCURSES_INT2) NCURSES_EXPORT(int) _nc_parse_entry(ENTRY * entryp, int literal, bool silent) @@ -493,7 +493,7 @@ _nc_parse_entry(ENTRY * entryp, int literal, bool silent) entryp->tterm.Numbers[entry_ptr->nte_index] = MAX_NUMBER; } else { entryp->tterm.Numbers[entry_ptr->nte_index] = - (short) _nc_curr_token.tk_valnumber; + (NCURSES_INT2) _nc_curr_token.tk_valnumber; } break;