diff options
author | Pierre Habouzit <madcoder@debian.org> | 2009-07-22 23:34:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-22 21:57:41 -0700 |
commit | f630cfda8800aee03c7eb2fcd0f840730fbe43b9 (patch) | |
tree | f780eac20525e629c704a31a8d6e629cae6ea011 /sha1_file.c | |
parent | 67da52bedc5750c10a732b9da7d64d5ef73f3b8a (diff) | |
download | git-f630cfda8800aee03c7eb2fcd0f840730fbe43b9.tar.gz git-f630cfda8800aee03c7eb2fcd0f840730fbe43b9.tar.xz |
refactor: use bitsizeof() instead of 8 * sizeof()
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c index 4576ff77f..1d996a199 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1170,7 +1170,7 @@ unsigned long unpack_object_header_buffer(const unsigned char *buf, size = c & 15; shift = 4; while (c & 0x80) { - if (len <= used || sizeof(long) * 8 <= shift) { + if (len <= used || bitsizeof(long) <= shift) { error("bad object header"); return 0; } |