[subset] const in _compare_range.
This commit is contained in:
parent
0be9fea0a9
commit
6368ce4c92
|
@ -214,12 +214,12 @@ static Range os2UnicodeRangesSorted[] = {
|
||||||
static int
|
static int
|
||||||
_compare_range (const void *_key, const void *_item, void *_arg)
|
_compare_range (const void *_key, const void *_item, void *_arg)
|
||||||
{
|
{
|
||||||
hb_codepoint_t *cp = (hb_codepoint_t *) _key;
|
hb_codepoint_t cp = *((hb_codepoint_t *) _key);
|
||||||
Range *range = (Range *) _item;
|
const Range *range = (Range *) _item;
|
||||||
|
|
||||||
if (*cp < range->start)
|
if (cp < range->start)
|
||||||
return -1;
|
return -1;
|
||||||
else if (*cp <= range->end)
|
else if (cp <= range->end)
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue