]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: errmap[]: reduce value size from 32 to 8 bits
authorChristian Franke <christian.franke@t-online.de>
Mon, 26 Feb 2024 13:01:54 +0000 (14:01 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 26 Feb 2024 14:56:10 +0000 (15:56 +0100)
Overflow would be detected at compile time.

Signed-off-by: Christian Franke <christian.franke@t-online.de>
winsup/cygwin/local_includes/errmap.h

index 737c01c8b8699479999a477d706f935083927f46..eacf9cd1ca9a9803475e0729c8892afbda719df6 100644 (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 */
This page took 0.037408 seconds and 5 git commands to generate.