Commit eb05b114e1c8042225086393a39b712fe3f31e71

Russell Belfer 2013-05-07T22:45:01

Fix dumb type in time comparison

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/diff.c b/src/diff.c
index e0dff9c..f466546 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);
 }