Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
status: add --porcelain output format
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 4576ff77f3ceec7231b14261f7386abb2289cd5c..1d996a199036c115d46c1d630d53edf29b3b78e7 100644
(file)
--- 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;
}