4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-02 20:40:24 +08:00
Jon Turney a3673a3f67 Cygwin: avoid GCC 10 error with -Werror=narrowing
../../../../src/winsup/cygwin/fhandler_console.cc: In member function 'const unsigned char* fhandler_console::write_normal(const unsigned char*, const unsigned char*)':
../../../../src/winsup/cygwin/fhandler_console.cc:2782:8: error: narrowing conversion of '-2' from 'int' to 'long unsigned int' [-Wnarrowing]
../../../../src/winsup/cygwin/fhandler_console.cc:2786:8: error: narrowing conversion of '-1' from 'int' to 'long unsigned int' [-Wnarrowing]
../../../../src/winsup/cygwin/fhandler_console.cc:2836:8: error: narrowing conversion of '-2' from 'int' to 'long unsigned int' [-Wnarrowing]
../../../../src/winsup/cygwin/fhandler_console.cc:2840:8: error: narrowing conversion of '-1' from 'int' to 'long unsigned int' [-Wnarrowing]

A mbtowc_p function returns an int, so that seems the correct type to use here.
2020-10-14 10:54:32 -04:00
..
2020-10-14 10:54:29 -04:00
2020-10-14 10:54:21 -04:00
2020-10-14 10:54:20 -04:00
2020-10-14 10:54:29 -04:00
2016-06-25 00:43:01 +02:00
2020-10-14 10:54:03 -04:00
2020-10-14 10:54:03 -04:00
2018-02-20 17:59:53 +01:00
2020-10-14 10:54:29 -04:00
2017-03-27 22:03:58 +01:00
2015-08-17 11:05:43 +02:00
2020-10-14 10:54:29 -04:00
2018-04-16 22:46:11 -05:00
2018-02-07 13:07:44 +01:00
2020-10-14 10:54:29 -04:00
2020-10-14 10:53:55 -04:00
2020-10-14 10:53:55 -04:00
2020-10-14 10:53:56 -04:00
2020-10-14 10:54:21 -04:00