Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-08 09:45:01 +0400
committerRussell Belfer <rb@github.com>2013-05-08 09:45:01 +0400
commiteb05b114e1c8042225086393a39b712fe3f31e71 (patch)
treef54dfedea63b2b0cf462ff8be681cab4208d60c2 /src/diff.c
parent0f938c6b8fbddc8810b05603c29751c0b5b7323c (diff)
Fix dumb type in time comparison
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
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);
}