diff crc32-test.c @ 2:ead9f84d11db

*: make it work on non-x86 too
author Paper <paper@tflc.us>
date Mon, 09 Feb 2026 01:21:00 -0500
parents 90cb48b87dcc
children 6483683ac857
line wrap: on
line diff
--- a/crc32-test.c	Mon Feb 09 01:18:06 2026 -0500
+++ b/crc32-test.c	Mon Feb 09 01:21:00 2026 -0500
@@ -22,7 +22,7 @@
 		uint32_t thiscrc = ~crc[i](0xFFFFFFFF, testdata, sizeof(testdata));
 
 		if (thiscrc != crcc) {
-			fprintf(stderr, "%zu, mismatch: %08x, %08x\n", i, crcc, thiscrc);
+			fprintf(stderr, "%zu, mismatch: %08" PRIX32 ", %08" PRIx32 "\n", i, crcc, thiscrc);
 			return -1;
 		}
 	}