diff options
Diffstat (limited to 'libcmap_find_script.c')
| -rw-r--r-- | libcmap_find_script.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libcmap_find_script.c b/libcmap_find_script.c index 844188e..ea39932 100644 --- a/libcmap_find_script.c +++ b/libcmap_find_script.c @@ -18,12 +18,8 @@ libcmap_find_script(uint32_t codepoint, size_t *offset_out, size_t *subrange_out *subrange_out = j; return &list[i]; } - skipped += (size_t)(list[i].ranges[j].last - list[i].ranges[j].first) + 1U; + skipped += LIBCMAP_RANGE_SIZE(&list[i].ranges[j]); } } - if (offset_out) - *offset_out = (size_t)codepoint; - if (subrange_out) - *subrange_out = 0; return NULL; } |
