commit 3b48d9b0e2e59c771428518ac65999907f72e2cc
Author: Laslo Hunhold <[email protected]>
AuthorDate: Sun May 31 23:00:13 2020 +0200
Commit: Laslo Hunhold <[email protected]>
CommitDate: Sun May 31 23:00:13 2020 +0200
Use uppercase-hex-letters and ensure POSIX-conformance
Signed-off-by: Laslo Hunhold <[email protected]>
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
@@ -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)