aboutsummaryrefslogtreecommitdiffstats
path: root/libcmap_find_block.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-12-21 15:01:37 +0100
committerMattias Andrée <m@maandree.se>2025-12-21 15:01:37 +0100
commit33489655a7244fac71ad3ccce8a96e69c61b85ee (patch)
tree5598807302d06eea4400b7826e6d9b7de679ebc1 /libcmap_find_block.c
parentAdd LIBCMAP_RANGE_SIZE (diff)
downloadlibcmap-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.c2
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;
}