git: libncurses: Avoid -Woverflow in baud rates.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Sep 25 22:56:33 PDT 2016


commit 095985121e34fb8501c6d6afb0d38e6f6a30fc0d
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sun Sep 25 13:40:48 2016 +0300

    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.

Summary of changes:
 contrib/ncurses/ncurses/tinfo/lib_baudrate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/095985121e34fb8501c6d6afb0d38e6f6a30fc0d


-- 
DragonFly BSD source repository



More information about the Commits mailing list