[PATCH] ui-refs.c: Simplify and inline cmp_age()
Lukas Fleischer
cgit at cryptocrack.de
Tue Feb 4 20:36:25 CET 2014
On Tue, 04 Feb 2014 at 20:27:56, Lukas Fleischer wrote:
> On Tue, 04 Feb 2014 at 20:26:32, Jason A. Donenfeld wrote:
> [...]
> > cmp_age(-1, 0) returns -1
> >
> > 0 - -1 returns 1
>
> Can the age ever be negative?
The age parameters can only contain copies of the committer_date or
tagger_date fields which are unsigned. So I guess the patch is fine.
More information about the CGit
mailing list