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:
parent
b55eed943b
commit
4f843719d3
|
@ -3,7 +3,7 @@
|
||||||
to this new array manually on demand. */
|
to this new array manually on demand. */
|
||||||
|
|
||||||
/* FIXME: Some of these choices are arbitrary! */
|
/* FIXME: Some of these choices are arbitrary! */
|
||||||
constexpr int errmap[] =
|
constexpr uint8_t errmap[] =
|
||||||
{
|
{
|
||||||
0, /* ERROR_SUCCESS */
|
0, /* ERROR_SUCCESS */
|
||||||
EBADRQC, /* ERROR_INVALID_FUNCTION */
|
EBADRQC, /* ERROR_INVALID_FUNCTION */
|
||||||
|
|
Loading…
Reference in New Issue