summaryrefslogtreecommitdiff
path: root/git-applypatch.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-12-06 13:41:48 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2005-12-06 17:28:26 -0800
commite23eff8be92a2a2cb66b53deef020063cff285ed (patch)
tree014d940871fa860412d000ca329f9ef57ad12d46 /git-applypatch.sh
parent[PATCH] Initial AIX portability fixes. (diff)
downloadtgif-e23eff8be92a2a2cb66b53deef020063cff285ed.tar.xz
qsort() ptrdiff_t may be larger than int
Morten Welinder <mwelinder@gmail.com> writes: > The code looks wrong. It assumes that pointers are no larger than ints. > If pointers are larger than ints, the code does not necessarily compute > a consistent ordering and qsort is allowed to do whatever it wants. > > Morten > > static int compare_object_pointers(const void *a, const void *b) > { > const struct object * const *pa = a; > const struct object * const *pb = b; > return *pa - *pb; > } Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-applypatch.sh')
0 files changed, 0 insertions, 0 deletions