[Rpm-maint] recognizing epoch, take two
Michael Schroeder
mls at suse.de
Wed Nov 16 10:20:51 UTC 2011
On Wed, Nov 16, 2011 at 11:17:23AM +0100, Ales Kozumplik wrote:
> I use long int type to pass the epoch around. This type can both cover the
> entire range of RPM_INT32_TYPE (the type of epoch value) and -1 for the
> 'any epoch' semantics. Compared to the previous version, it saves us one
> malloc and is not longer.
Hmm, is sizeof(long int) > 4 true for all platforms?
Cheers,
Michael.
--
Michael Schroeder mls at suse.de
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
More information about the Rpm-maint
mailing list