From 33489655a7244fac71ad3ccce8a96e69c61b85ee Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 21 Dec 2025 15:01:37 +0100 Subject: Use LIBCMAP_RANGE_SIZE, and do not *offset_out and *subrange_out when the codepoint is not found MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcmap_find_block.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libcmap_find_block.c') diff --git a/libcmap_find_block.c b/libcmap_find_block.c index 75c93e5..73071c7 100644 --- a/libcmap_find_block.c +++ b/libcmap_find_block.c @@ -14,7 +14,5 @@ libcmap_find_block(uint32_t codepoint, size_t *offset_out) return &list[i]; } } - if (offset_out) - *offset_out = (size_t)codepoint; return NULL; } -- cgit v1.3.1