From 45d561e0d8daf834b70c8a5168011f3b043cf1a4 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Mon, 16 Mar 2026 22:23:00 -0700 Subject: [PATCH] test: Fix SMP test in libx52util The SMP test was incorrectly calculating the codepoints, resulting in a test of the codepoints inside the BMP, instead of the individual SMPs. --- libx52util/x52_char_map_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libx52util/x52_char_map_test.c b/libx52util/x52_char_map_test.c index afb1677..96f4dbf 100644 --- a/libx52util/x52_char_map_test.c +++ b/libx52util/x52_char_map_test.c @@ -166,7 +166,7 @@ int main(int argc, char *argv[]) for (uint32_t smp = 0x1; smp <= 0x10; smp++) { const uint8_t *rec = &expected_blob[0xFFFD * RECORD_SIZE]; for (uint32_t offset = 0; offset < 0x100; offset += 0xFF) { - uint32_t cp = smp * 256 + offset; + uint32_t cp = smp * 0x10000 + offset; memset(input, 0, sizeof(input)); memset(output, 0, sizeof(output));