mingw --enable-tui

Tom Tromey tom@tromey.com
Sun Nov 22 17:20:22 GMT 2020


>>>>> 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


More information about the Gdb-patches mailing list