diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-08-15 00:09:46 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-08-15 00:09:46 +0200 |
commit | 1e94df08dad9437164ac7727f23a51591b7c42f4 (patch) | |
tree | a21f682982c53165fb04878a09330e8fd7c9f941 /src/sha1_lookup.c | |
parent | c87bf86cd739c30ab430a789e9eb0dfb1b1d78b7 (diff) | |
download | libgit2-1e94df08dad9437164ac7727f23a51591b7c42f4.tar.gz |
sha1-lookup: This assert was correct
Diffstat (limited to 'src/sha1_lookup.c')
-rw-r--r-- | src/sha1_lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sha1_lookup.c b/src/sha1_lookup.c index ce067caaa..cdcadfaa9 100644 --- a/src/sha1_lookup.c +++ b/src/sha1_lookup.c @@ -124,7 +124,7 @@ int sha1_entry_pos(const void *table, lov = (lov << 8) | lo_key[ofs_0+1]; kyv = (kyv << 8) | key[ofs_0+1]; } - assert(lov <= hiv); + assert(lov < hiv); if (kyv < lov) return -1 - lo; |