mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
[ecs] Find correct correct sub-pool range
Returning -1 for key > value doesn't work too well for bsearch.
This commit is contained in:
parent
bc041d6291
commit
254fcff8ff
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ range_cmp (const void *_key, const void *_range, void *_subpool)
|
|||
ecs_subpool_t *subpool = _subpool;
|
||||
|
||||
if (*key >= *range) {
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
if (range - subpool->ranges > 0) {
|
||||
return *key >= range[-1] ? 0 : -1;
|
||||
|
|
Loading…
Reference in a new issue