]> www.infradead.org Git - users/dhowells/kafs-utils.git/commit
rxgen: The abort table comparator needs to handle big numbers
authorDavid Howells <dhowells@redhat.com>
Mon, 14 Apr 2014 07:09:58 +0000 (08:09 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 14 Apr 2014 07:09:58 +0000 (08:09 +0100)
commitabaecb45e3c0366ba047ebbb7c06f6c69a354bf6
tree36256ff747394e31c9e2ff83b994543eead551b0
parente8a0aeaf494423d996d2b407d3d832c7f06327aa
rxgen: The abort table comparator needs to handle big numbers

The abort table comparator needs to handle big numbers (larger than
0x7fffffff).  Subtracting a small number from such a big number and then
casting to a signed int results in a negative number, which bsearch()
interprets as indicating that the bigger number is smaller than the smaller
number.

Signed-off-by: David Howells <dhowells@redhat.com>
py_rxgen.c