Change type of MB_CUR_MAX and MB_CUR_MAX_L() to size_t.

POSIX requires that MB_CUR_MAX expands to an expression of type size_t.
It currently expands to an int. As these are already macros, don't
change the underlying type of these functions. There is no ned to touch
those.

Differential Revision:	https://reviews.freebsd.org/D6645
This commit is contained in:
Ed Schouten 2016-07-28 09:50:19 +00:00
parent 2d19b736ed
commit 822b22a9bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303427
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ __BEGIN_DECLS
#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;

View file

@ -55,5 +55,5 @@ size_t wcstombs_l(char * __restrict,
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))