From mboxrd@z Thu Jan 1 00:00:00 1970 From: cgit at cryptocrack.de (Lukas Fleischer) Date: Tue, 04 Feb 2014 20:36:25 +0100 Subject: [PATCH] ui-refs.c: Simplify and inline cmp_age() In-Reply-To: <20140204192756.3523.57471@typhoon.lan> References: <1391541725-3274-1-git-send-email-cgit@cryptocrack.de> <20140204192756.3523.57471@typhoon.lan> Message-ID: <20140204193625.3798.14511@typhoon.lan> 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.