libgrapheme

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

commit 3b48d9b0e2e59c771428518ac65999907f72e2cc
parent ac62ea6912ade7d75c35184c464c8b19e08f8f56
Author: Laslo Hunhold <dev@frign.de>
Date:   Sun, 31 May 2020 23:00:13 +0200

Use uppercase-hex-letters and ensure POSIX-conformance

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

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

diff --git a/src/test_body.c b/src/test_body.c @@ -95,7 +95,7 @@ static const struct { .arr = (uint8_t[]){ 0xC3, 0xBF }, .len = 2, .exp_len = 2, - .exp_cp = 0xff, + .exp_cp = 0xFF, }, { /* invalid 2-byte sequence (second byte missing) @@ -135,7 +135,7 @@ static const struct { .arr = (uint8_t[]){ 0xE0, 0xBF, 0xBF }, .len = 3, .exp_len = 3, - .exp_cp = 0xfff, + .exp_cp = 0xFFF, }, { /* invalid 3-byte sequence (second byte missing) @@ -205,7 +205,7 @@ static const struct { .arr = (uint8_t[]){ 0xF3, 0xBF, 0xBF, 0xBF }, .len = 4, .exp_len = 4, - .exp_cp = 0xfffff, + .exp_cp = UINT32_C(0xFFFFF), }, { /* invalid 4-byte sequence (second byte missing)