From eb05b114e1c8042225086393a39b712fe3f31e71 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Tue, 7 May 2013 22:45:01 -0700 Subject: [PATCH] Fix dumb type in time comparison --- src/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diff.c b/src/diff.c index e0dff9c95..f466546bb 100644 --- a/src/diff.c +++ b/src/diff.c @@ -535,7 +535,7 @@ cleanup: static bool diff_time_eq( const git_index_time *a, const git_index_time *b, bool use_nanos) { - return a->seconds == a->seconds && + return a->seconds == b->seconds && (!use_nanos || a->nanoseconds == b->nanoseconds); }