Re: mingw --enable-tui

Tom Tromey
2020-11-22T17:20:29Z

>>>>> gmail Vladimir Koković via Gdb-patches <gdb-patches@sourceware.org> writes:

> ../../../src/gdb-10.1/gdb/tui/tui-win.c:130:1: error: narrowing
> conversion of ‘2147483648’ from ‘chtype’ {aka ‘long long unsigned
> int’} to ‘int’ [-Wnarrowing]
>   130 | };
>       | ^
> ../../../src/gdb-10.1/gdb/tui/tui-win.c:130:1: error: narrowing
> conversion of ‘2483027968’ from ‘chtype’ {aka ‘long long unsigned
> int’} to ‘int’ [-Wnarrowing]

Would it work to change tui_translate so that "value" is "chtype"?
That would avoid #ifs and copying the code.

Tom