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.
fix-issue-63
nirenjan 2026-03-16 22:23:00 -07:00
parent b626a9367f
commit 45d561e0d8
1 changed files with 1 additions and 1 deletions

View File

@ -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));