]> git.ipfire.org Git - thirdparty/git.git/commit
Fix a comparison bug in diff-delta.c
authorPierre Habouzit <madcoder@debian.org>
Wed, 23 Aug 2006 09:17:55 +0000 (11:17 +0200)
committerJunio C Hamano <junkio@cox.net>
Wed, 23 Aug 2006 10:05:27 +0000 (03:05 -0700)
commitb05faa2da9ec24d737bbba47c71e815255f3eaa7
tree81e91df42a7649b9a273b9c92c28ae80fde29340
parent68d42c41ef33cde500307660bb64a1c74f62711e
Fix a comparison bug in diff-delta.c

(1 << i) < hspace is compared in the `int` space rather that in the
unsigned one.  the result will be wrong if hspace is between 0x40000000
and 0x80000000.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff-delta.c