libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

commit 7f5b55c8f25bf341296d95db83d1ad9f8c26a459
parent 2dbe3f7dedbd805ecb3a381abcc7a8564aeba181
Author: Laslo Hunhold <dev@frign.de>
Date:   Fri,  7 Jan 2022 18:34:26 +0100

Silence a few warnings and make it clear that speclen is at most 255

This gives a clearer indication we are working with small enum-values
rather than true offsets.

Signed-off-by: Laslo Hunhold <dev@frign.de>

Diffstat:
Mgen/properties.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gen/properties.c b/gen/properties.c @@ -25,7 +25,7 @@ struct property_spec { struct property_payload { struct properties *prop; const struct property_spec *spec; - size_t speclen; + uint_least8_t speclen; }; static const struct property_spec char_break_property[] = { @@ -113,7 +113,7 @@ break_property_callback(char *file, char **field, size_t nfields, /* prop always has the length 0x110000 */ struct property_payload *p = (struct property_payload *)payload; struct range r; - size_t i; + uint_least8_t i; uint_least32_t cp; (void)comment; @@ -161,7 +161,7 @@ struct compressed_properties { size_t datalen; }; -void +static void compress_properties(const struct properties *prop, struct compressed_properties *comp) {