]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r304920:
authordim <dim@FreeBSD.org>
Wed, 7 Sep 2016 18:06:34 +0000 (18:06 +0000)
committerdim <dim@FreeBSD.org>
Wed, 7 Sep 2016 18:06:34 +0000 (18:06 +0000)
commitc8aefaaee85dcc4d2e237255c2d9d8b1be17a869
tree72b813059dbb1fecc7fe2d5b5c379047322c43eb
parentd7fd7ac304f8bb3dd6f9ff9157c1d31a196abd0b
MFC r304920:

In ncurses baudrate definitions, avoid warnings about implicit
conversions from int to short changing the values.  This applies to
B38400 and higher, since their values do not fit into a short.

However, since the wrapped values are still unique, and they only serve
as keys, there is no problem in adding a cast to silence the warnings.
This also avoids changing the ABI, which would happen if we changed
NCURSES_OSPEED to int.

Discussed with: Thomas Dickey
contrib/ncurses/ncurses/tinfo/lib_baudrate.c