Index: head/include/stdlib.h =================================================================== --- head/include/stdlib.h +++ head/include/stdlib.h @@ -77,7 +77,7 @@ #endif extern int __mb_cur_max; extern int ___mb_cur_max(void); -#define MB_CUR_MAX (___mb_cur_max()) +#define MB_CUR_MAX ((size_t)___mb_cur_max()) _Noreturn void abort(void); int abs(int) __pure2; Index: head/include/xlocale/_stdlib.h =================================================================== --- head/include/xlocale/_stdlib.h +++ head/include/xlocale/_stdlib.h @@ -55,5 +55,5 @@ int wctomb_l(char *, wchar_t, locale_t); int ___mb_cur_max_l(locale_t); -#define MB_CUR_MAX_L(x) (___mb_cur_max_l(x)) +#define MB_CUR_MAX_L(x) ((size_t)___mb_cur_max_l(x))