svn commit: r1931403 - subversion/trunk/subversion/libsvn_subr

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <176873504843.3405039.2903373028814175797@svn02-us-east.apache.org>
Author: rinrab
Date: Sun Jan 18 11:17:27 2026
New Revision: 1931403

Log:
Follow-up to r1931389: Cast 'len' to uint (it's safe because we're in a branch
that alredy verified that 'len' is in boudries).

* subversion/libsvn_subr/checksum_apr.c
  (sha1_update): Add cast.

Modified:
   subversion/trunk/subversion/libsvn_subr/checksum_apr.c

Modified: subversion/trunk/subversion/libsvn_subr/checksum_apr.c
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/checksum_apr.c	Sun Jan 18 09:08:13 2026	(r1931402)
+++ subversion/trunk/subversion/libsvn_subr/checksum_apr.c	Sun Jan 18 11:17:27 2026	(r1931403)
@@ -95,7 +95,7 @@ sha1_update(apr_sha1_ctx_t *ctx,
       unsigned int block;
 
       if (len < UINT_MAX)
-        block = len;
+        block = (unsigned int)len;
       else
         block = UINT_MAX;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.