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

Re: svn commit: r1673204 - /subversion/trunk/subversion/libsvn_fs_fs/dag.c

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 13 Apr 2015 21:20:05 +0000

rhuijben_at_apache.org wrote on Mon, Apr 13, 2015 at 14:28:39 -0000:
> - *has_props = (noderev->prop_rep->expanded_size > 4);
> + *has_props = (noderev->prop_rep->expanded_size > 4
> + || (noderev->prop_rep->expanded_size == 0
> + && noderev->prop_rep->size > 4));

Having to remember, on every use of EXPANDED_SIZE, to check if it's zero
is madness. Is there a good reason not to make the deserializer
function handle this? If needed, by inventing a getter or a new struct
member that doesn't have this quirk?
Received on 2015-04-13 23:24:49 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.