aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-22 19:23:14 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-22 19:23:14 +0200
commitff14e4801643f8c69b5d31e183bfb71943ee519f (patch)
tree7d1760fcbe2458846d393e9d433afb3f945946da /lib/unicode
parent8135b1fefb0adf85fcabfd74dbca3516d8665450 (diff)
Add explicit underlying type for enums
Due to the size of the lookup tables, we want to use the smallest possible underlying type for the Unicode property enumerations in order to reduce the binary size as much as possible.
Diffstat (limited to 'lib/unicode')
-rw-r--r--lib/unicode/prop/uprop_blkname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicode/prop/uprop_blkname.c b/lib/unicode/prop/uprop_blkname.c
index 52616c5..490f133 100644
--- a/lib/unicode/prop/uprop_blkname.c
+++ b/lib/unicode/prop/uprop_blkname.c
@@ -339,6 +339,6 @@ static const struct u8view lookup[] = {
struct u8view
uprop_blkname(enum uprop_blk blk)
{
- ASSUME(blk >= 0 && blk < lengthof(lookup));
+ ASSUME(blk < lengthof(lookup));
return lookup[blk];
}