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

Re: [PATCH]simple(for me only? not sure) typecasting

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-10-12 18:29:08 CEST

On Thu, 12 Oct 2006, Kamesh Jayachandran wrote:

> Hi All,
> I found the following snippet in subversion/libsvn_subr/sorts.c.
>
> <snip>
> svn_sort_compare_paths(const void *a, const void *b)
> {
> const char *item1 = *((const char * const *) a);
> const char *item2 = *((const char * const *) b);
> return svn_path_compare_paths(item1, item2);
> }
> </snip>
> I feel it is easier to understand 'const char *item1 = *((const char **)
> a);' than 'const char *item1 = *((const char * const *) a);'.

This patch changes the semantics of those statements.

  • application/pgp-signature attachment: stored
Received on Thu Oct 12 18:30:43 2006

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.