Cygwin: errmap[]: reduce value size from 32 to 8 bits

Overflow would be detected at compile time.

Signed-off-by: Christian Franke <christian.franke@t-online.de>
This commit is contained in:
Christian Franke 2024-02-26 14:01:54 +01:00 committed by Corinna Vinschen
parent b55eed943b
commit 4f843719d3
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
to this new array manually on demand. */
/* FIXME: Some of these choices are arbitrary! */
constexpr int errmap[] =
constexpr uint8_t errmap[] =
{
0, /* ERROR_SUCCESS */
EBADRQC, /* ERROR_INVALID_FUNCTION */