diff options
| author | Mattias Andrée <m@maandree.se> | 2025-12-21 15:01:37 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2025-12-21 15:01:37 +0100 |
| commit | 33489655a7244fac71ad3ccce8a96e69c61b85ee (patch) | |
| tree | 5598807302d06eea4400b7826e6d9b7de679ebc1 /libcmap_find_block.c | |
| parent | Add LIBCMAP_RANGE_SIZE (diff) | |
| download | libcmap-33489655a7244fac71ad3ccce8a96e69c61b85ee.tar.gz libcmap-33489655a7244fac71ad3ccce8a96e69c61b85ee.tar.bz2 libcmap-33489655a7244fac71ad3ccce8a96e69c61b85ee.tar.xz | |
Use LIBCMAP_RANGE_SIZE, and do not *offset_out and *subrange_out when the codepoint is not found
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | libcmap_find_block.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |
