From bebc11c2a9022e61cdc7544ed2cb5101a170ae92 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 26 Feb 2024 14:01:54 +0100 Subject: [PATCH 2/4] Cygwin: errmap[]: reduce value size from 32 to 8 bits Overflow would be detected at compile time. Signed-off-by: Christian Franke --- winsup/cygwin/local_includes/errmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/local_includes/errmap.h b/winsup/cygwin/local_includes/errmap.h index 737c01c8b..eacf9cd1c 100644 --- a/winsup/cygwin/local_includes/errmap.h +++ b/winsup/cygwin/local_includes/errmap.h @@ -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 */ -- 2.43.0