fix wc_map_range_search() parameter type mismatch

caught by trying to compile on gcc with LTO enabled
This commit is contained in:
NRK
2022-02-12 15:33:25 +06:00
parent 2b59b9eb0a
commit d35241cdbe

View File

@@ -51,7 +51,7 @@ wc_map3_search(wc_uint16 c1, wc_uint16 c2, wc_map3 *map, size_t n)
} }
wc_map * wc_map *
wc_map_range_search(wc_uint16 code, wc_map *map, int n) wc_map_range_search(wc_uint16 code, wc_map *map, size_t n)
{ {
return (wc_map *)bsearch((void *)&code, (void *)map, n, sizeof(wc_map), return (wc_map *)bsearch((void *)&code, (void *)map, n, sizeof(wc_map),
map_range_cmp); map_range_cmp);