You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2020/03/10 12:42:44 UTC
svn commit: r1875038 - /subversion/trunk/subversion/svn/svn.c
Author: julianfoad
Date: Tue Mar 10 12:42:43 2020
New Revision: 1875038
URL: http://svn.apache.org/viewvc?rev=1875038&view=rev
Log:
* subversion/svn/svn.c
(add_commands): Add explicit casts to avoid compiler warnings.
Modified:
subversion/trunk/subversion/svn/svn.c
Modified: subversion/trunk/subversion/svn/svn.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/svn.c?rev=1875038&r1=1875037&r2=1875038&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/svn.c (original)
+++ subversion/trunk/subversion/svn/svn.c Tue Mar 10 12:42:43 2020
@@ -1997,9 +1997,9 @@ add_commands(const svn_opt_subcommand_de
svn_opt_subcommand_desc3_t *cmds_new;
for (cmd = cmds_old; cmd->name; cmd++) ;
- n_cmds_old = cmd - cmds_old;
+ n_cmds_old = (int)(cmd - cmds_old);
for (cmd = cmds_add; cmd->name; cmd++) ;
- n_cmds_add = cmd - cmds_add;
+ n_cmds_add = (int)(cmd - cmds_add);
n_cmds_new = n_cmds_old + n_cmds_add;
/* copy CMDS_OLD and CMDS_ADD, plus an all-zeros terminator entry */