]> Savannah Git Hosting - gnulib.git/commitdiff
stdlib: MB_CUR_MAX is type size_t
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Dec 2024 20:23:22 +0000 (12:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Dec 2024 20:58:20 +0000 (12:58 -0800)
* lib/stdlib.in.h (gl_MB_CUR_MAX): Return size_t, not int,
to conform to POSIX.

ChangeLog
lib/stdlib.in.h

index e6d2e1d5922c59a82963b55d20d9b6c8c319cbfa..90a80123a24495f92cdcad8f5d030a788c9ee5cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       stdlib: MB_CUR_MAX is type size_t
+       * lib/stdlib.in.h (gl_MB_CUR_MAX): Return size_t, not int,
+       to conform to POSIX.
+
 2024-12-23  Bruno Haible  <bruno@clisp.org>
 
        mbrtowc tests: Test in the UTF-8 environment on native Windows.
index adbef69131bde20a22dc307684d901db73f844d0..43430dfe68de44d7d594e2b82e880b08402231e3 100644 (file)
@@ -749,7 +749,7 @@ _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "
 /* Return maximum number of bytes of a multibyte character.  */
 #if @REPLACE_MB_CUR_MAX@
 # if !GNULIB_defined_MB_CUR_MAX
-_GL_STDLIB_INLINE int
+_GL_STDLIB_INLINE size_t
 gl_MB_CUR_MAX (void)
 {
   /* Turn the value 3 to the value 4, as needed for the UTF-8 encoding.  */