summaryrefslogtreecommitdiff
path: root/t/t4006-diff-mode.sh
diff options
context:
space:
mode:
authorLibravatar Nicolas Pitre <nico@cam.org>2007-04-09 01:06:29 -0400
committerLibravatar Junio C Hamano <junkio@cox.net>2007-04-10 12:48:14 -0700
commit8723f216263ba4a0f06be7b93fada863c0931e09 (patch)
tree6d357724c891ce009a8c7ae1a0a4083bc39ff1f5 /t/t4006-diff-mode.sh
parentget rid of num_packed_objects() (diff)
downloadtgif-8723f216263ba4a0f06be7b93fada863c0931e09.tar.xz
make overflow test on delta base offset work regardless of variable size
This patch introduces the MSB() macro to obtain the desired number of most significant bits from a given variable independently of the variable type. It is then used to better implement the overflow test on the OBJ_OFS_DELTA base offset variable with the property of always working correctly regardless of the type/size of that variable. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t4006-diff-mode.sh')
0 files changed, 0 insertions, 0 deletions