diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-06-20 21:46:10 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-06-20 21:46:10 -0700 |
| commit | 7c74c3926ad60ba1bbfed13355f00a29813a0f32 (patch) | |
| tree | 45d5169b6377988e617a9d1a2096b98f31d07a49 /sha1_file.c | |
| parent | d4f6bc887de7957645b998a0b0e22bc4048f36dd (diff) | |
| parent | 48fb7deb5bbd87933e7d314b73d7c1b52667f80f (diff) | |
Merge branch 'lt/maint-unsigned-left-shift'
* lt/maint-unsigned-left-shift:
Fix big left-shifts of unsigned char
Diffstat (limited to 'sha1_file.c')
| -rw-r--r-- | sha1_file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sha1_file.c b/sha1_file.c index e73cd4fc0b..8f5fe62d54 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1162,8 +1162,7 @@ unsigned long unpack_object_header_buffer(const unsigned char *buf, unsigned long len, enum object_type *type, unsigned long *sizep) { unsigned shift; - unsigned char c; - unsigned long size; + unsigned long size, c; unsigned long used = 0; c = buf[used++]; |
