lib: fix avl tree lookup
authorFelix Fietkau <nbd@nbd.name>
Mon, 27 Nov 2023 13:40:02 +0000 (14:40 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 27 Nov 2023 13:40:05 +0000 (14:40 +0100)
commita92101631c0dd2c466dfe22ffd752b36929b2f69
tree4fe53498e34f91d0d7711f5ad0d90d6b7c4bd54f
parentcb71f64de0eca864285e3c472b5ca4449c43ee29
lib: fix avl tree lookup

The delta between IDs can be bigger than INT_MAX, causing order mismatch
in the tree and lookup failures

Signed-off-by: Felix Fietkau <nbd@nbd.name>
lib.c