Author: rinrab
Date: Wed May 20 09:04:40 2026
New Revision: 1934428
Log:
Use utf8proc_int32_t instead of apr_int32_t for the codepoint since it's the
type that the utf8proc API uses.
* subversion/libsvn_subr/utf8proc.c
(svn_utf_cstring_utf8_width, utf8_skipn): Use better type for the local
variables.
Suggested by: kotkov
Modified:
subversion/trunk/subversion/libsvn_subr/utf8proc.c
Modified: subversion/trunk/subversion/libsvn_subr/utf8proc.c
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/utf8proc.c Wed May 20 09:00:30
2026 (r1934427)
+++ subversion/trunk/subversion/libsvn_subr/utf8proc.c Wed May 20 09:04:40
2026 (r1934428)
@@ -619,7 +619,7 @@ svn_utf_cstring_utf8_width(const char *c
* utf8proc_iterate() does all the error checking we might ever need. */
while (*cstr)
{
- apr_int32_t ucs;
+ utf8proc_int32_t ucs;
int w;
int nbytes = utf8proc_iterate((apr_byte_t*)cstr, -1, &ucs);
@@ -647,7 +647,7 @@ utf8_skipn(const char *cstr, apr_size_t
while (*cstr && i < n)
{
- apr_int32_t ucs;
+ utf8proc_int32_t ucs;
int nbytes = utf8proc_iterate((apr_byte_t*)cstr, -1, &ucs);