libncurses: Avoid -Woverflow in baud rates.
authorzrj <rimvydas.jasinskas@gmail.com>
Sun, 25 Sep 2016 10:40:48 +0000 (13:40 +0300)
committerzrj <zrj@dragonflybsd.org>
Mon, 26 Sep 2016 06:10:15 +0000 (09:10 +0300)
commit095985121e34fb8501c6d6afb0d38e6f6a30fc0d
treeb2adf4c0bb7f858699896b999c106bfc16ed2887
parent6b9ba3e86a05417c2af9786967ec92fc136cffde
libncurses: Avoid -Woverflow in baud rates.

NCURSES_OSPEED has type - short so anything >= B38400 overflows.
Since changing NCURSES_OSPEED to use int is an ABI change and given
that overflown values are still unique and only used as identifiers
there is nothing wrong by explictly casting it to used type.
contrib/ncurses/ncurses/tinfo/lib_baudrate.c