diff options
Diffstat (limited to 'extern')
-rw-r--r-- | extern/rangetree/range_tree_c_api.cc | 11 | ||||
-rw-r--r-- | extern/rangetree/range_tree_c_api.h | 10 |
2 files changed, 11 insertions, 10 deletions
diff --git a/extern/rangetree/range_tree_c_api.cc b/extern/rangetree/range_tree_c_api.cc index 56f2d90d329..79d3df5792b 100644 --- a/extern/rangetree/range_tree_c_api.cc +++ b/extern/rangetree/range_tree_c_api.cc @@ -53,19 +53,20 @@ void range_tree_uint_release(RangeTreeUInt *rt, unsigned v) rt->release(v); } -int range_tree_uint_has(const RangeTreeUInt *rt, unsigned v) +bool range_tree_uint_has(const RangeTreeUInt *rt, unsigned v) { return rt->has(v); } -int range_tree_uint_has_range(const RangeTreeUInt *rt, - unsigned vmin, - unsigned vmax) +bool range_tree_uint_has_range( + const RangeTreeUInt *rt, + unsigned vmin, + unsigned vmax) { return rt->has_range(vmin, vmax); } -int range_tree_uint_empty(const RangeTreeUInt *rt) +bool range_tree_uint_empty(const RangeTreeUInt *rt) { return rt->empty(); } diff --git a/extern/rangetree/range_tree_c_api.h b/extern/rangetree/range_tree_c_api.h index af6a7b161a8..d78dc959a6c 100644 --- a/extern/rangetree/range_tree_c_api.h +++ b/extern/rangetree/range_tree_c_api.h @@ -39,13 +39,13 @@ unsigned range_tree_uint_take_any(RangeTreeUInt *rt); void range_tree_uint_release(RangeTreeUInt *rt, unsigned v); -int range_tree_uint_has(const RangeTreeUInt *rt, unsigned v); +bool range_tree_uint_has(const RangeTreeUInt *rt, unsigned v); -int range_tree_uint_has_range(const RangeTreeUInt *rt, - unsigned vmin, - unsigned vmax); +bool range_tree_uint_has_range( + const RangeTreeUInt *rt, + unsigned vmin, unsigned vmax); -int range_tree_uint_empty(const RangeTreeUInt *rt); +bool range_tree_uint_empty(const RangeTreeUInt *rt); unsigned range_tree_uint_size(const RangeTreeUInt *rt); |