[hackers] [libgrapheme] Use uppercase-hex-letters and ensure POSIX-conformance || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Sun, 31 May 2020 23:00:44 +0200 (CEST)

commit 3b48d9b0e2e59c771428518ac65999907f72e2cc
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Sun May 31 23:00:13 2020 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Sun May 31 23:00:13 2020 +0200

    Use uppercase-hex-letters and ensure POSIX-conformance
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/src/test_body.c b/src/test_body.c
index 92e2543..5f83d93 100644
--- a/src/test_body.c
+++ b/src/test_body.c
_AT_@ -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)
_AT_@ -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)
_AT_@ -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)
Received on Sun May 31 2020 - 23:00:44 CEST

This archive was generated by hypermail 2.3.0 : Sun May 31 2020 - 23:12:31 CEST