Преглед на файлове

fix signedness of WINT_MIN expression

since wint_t is unsigned, WINT_MIN needs to expand to an unsigned zero.

(cherry picked from commit aee9b1526247f74e9b755b50e102b3b4ce2aac1d)
Rich Felker преди 10 години
родител
ревизия
2c61720d97
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      include/stdint.h

+ 1 - 1
include/stdint.h

@@ -78,7 +78,7 @@ typedef uint64_t uint_least64_t;
 #define INTMAX_MAX  INT64_MAX
 #define UINTMAX_MAX UINT64_MAX
 
-#define WINT_MIN 0
+#define WINT_MIN 0U
 #define WINT_MAX UINT32_MAX
 
 #if L'\0'-1 > 0