author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 7 Mar 2007 01:44:19 +0000 (20:44 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 7 Mar 2007 19:02:33 +0000 (11:02 -0800) | ||
commit | 326bf396778bc9ab8f9e253bb514e7f41ef1502b | |
tree | 41a09c2642dbd03db6b6b6cf3394e048b7661800 | tree | snapshot |
parent | 3a55602eeca4ac8670e8698a7187e18b95683344 | commit | diff |
Use uint32_t for all packed object counts.
As we permit up to 2^32-1 objects in a single packfile we cannot
use a signed int to represent the object offset within a packfile,
after 2^31-1 objects we will start seeing negative indexes and
error out or compute bad addresses within the mmap'd index.
This is a minor cleanup that does not introduce any significant
logic changes. It is roach free.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
As we permit up to 2^32-1 objects in a single packfile we cannot
use a signed int to represent the object offset within a packfile,
after 2^31-1 objects we will start seeing negative indexes and
error out or compute bad addresses within the mmap'd index.
This is a minor cleanup that does not introduce any significant
logic changes. It is roach free.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-fsck.c | diff | blob | history | |
cache.h | diff | blob | history | |
pack-check.c | diff | blob | history | |
sha1_file.c | diff | blob | history | |
sha1_name.c | diff | blob | history |