[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1310047 - /subversion/trunk/subversion/libsvn_ra/compat.c

From: Hyrum K Wright <hyrum.wright_at_wandisco.com>
Date: Thu, 5 Apr 2012 15:48:46 -0500

On Thu, Apr 5, 2012 at 3:29 PM, Greg Stein <gstein_at_gmail.com> wrote:
> On Thu, Apr 5, 2012 at 16:15,  <hwright_at_apache.org> wrote:
>> Author: hwright
>> Date: Thu Apr  5 20:15:41 2012
>> New Revision: 1310047
>>
>> URL: http://svn.apache.org/viewvc?rev=1310047&view=rev
>> Log:
>> * subversion/libsvn_ra/compat.c
>>  (prev_log_path): Another integer-width mismatch fix.
>>
>> Modified:
>>    subversion/trunk/subversion/libsvn_ra/compat.c
>>
>> Modified: subversion/trunk/subversion/libsvn_ra/compat.c
>> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra/compat.c?rev=1310047&r1=1310046&r2=1310047&view=diff
>> ==============================================================================
>> --- subversion/trunk/subversion/libsvn_ra/compat.c (original)
>> +++ subversion/trunk/subversion/libsvn_ra/compat.c Thu Apr  5 20:15:41 2012
>> @@ -141,7 +141,7 @@ prev_log_path(const char **prev_path_p,
>>               svn_sort__item_t item = APR_ARRAY_IDX(paths,
>>                                                     i - 1, svn_sort__item_t);
>>               const char *ch_path = item.key;
>> -              int len = strlen(ch_path);
>> +              size_t len = strlen(ch_path);
>
> size_t or should this be apr_size_t?

You ask this question *every time* one of these changes is made. :P

And the response usually is "apr_size_t is a typedef of size_t on
every platform we support, and we already use a mix of the two
throughout our code".

(Of course, there's usually a bit of discussion and pedantry to get to
that conclusion, and if that's what you're after, don't let me stop
you. :) )

-Hyrum

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com/
Received on 2012-04-05 22:49:18 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.