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

Re: svn commit: r8343 - trunk/subversion/libsvn_ra_svn

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-01-16 22:43:58 CET

Greg Hudson wrote:

>On Fri, 2004-01-16 at 13:20, ghudson@tigris.org wrote:
>
>
>>* subversion/libsvn_ra_svn/cram.c (compute_digest): Use an unsigned
>> char array for the secret. Patch from Philip Martin.
>>
>>
>
>The bitwise operations performed on secret are all xors, so there should
>be no semantic problem with them being (possibly) signed char.
>
But there can be a difference on one's complement or sign+magnitude
machines. They're about as rare as the ones where all-bits-zero is not
the null pointer, but if we're being pedaintic, the standard does say
that "unsigned char" is the correct representation for raw memory, not
plain char.

> So, it's
>mainly an issue of warnings with pickier compilers. Do people think
>that's important enough for a 1.0 pullup?
>
>
No.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 16 22:46:31 2004

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.