[subset] const in _compare_range.

This commit is contained in:
Garret Rieger 2018-02-26 17:44:39 -08:00
parent 0be9fea0a9
commit 6368ce4c92
1 changed files with 4 additions and 4 deletions

View File

@ -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;