# HG changeset patch # User Matti Hamalainen # Date 1578595074 -7200 # Node ID 88be5cf55caffa8ee6af35084237c6143238966e # Parent 647671a9a0b8421514f93f658c73d5e51b1dd5a6 Use correct format specifier DM_PRIu_SIZE_T instead of DM_PRId64. diff -r 647671a9a0b8 -r 88be5cf55caf tests/fptest.c --- a/tests/fptest.c Thu Jan 09 20:14:58 2020 +0200 +++ b/tests/fptest.c Thu Jan 09 20:37:54 2020 +0200 @@ -7,6 +7,7 @@ static int test_number = 0; + void check(const char *str, DMFixedPoint v, Sint64 dw) { DMFixedPoint *q = (DMFixedPoint *) &dw; @@ -27,10 +28,11 @@ printf("\nTEST #%d: %s\n", test_number, msg); } + int main(int argc, char *argv[]) { + DMFixedPoint a, b, delta; int i; - DMFixedPoint a, b, delta; char *s; (void) argc; @@ -48,9 +50,9 @@ "SDL byte order = %s (%d)\n\n", s, SDL_BYTEORDER); printf( - "sizeof(DMFixedPoint) = %" DM_PRId64 " bytes\n" - "sizeof(DMFixedPoint.dw) = %" DM_PRId64 " bytes (should be %d)\n" - "sizeof(DMFixedPoint.w[0]) = %" DM_PRId64 " bytes (should be %d)\n", + "sizeof(DMFixedPoint) = %" DM_PRIu_SIZE_T " bytes\n" + "sizeof(DMFixedPoint.dw) = %" DM_PRIu_SIZE_T " bytes (should be %d)\n" + "sizeof(DMFixedPoint.w[0]) = %" DM_PRIu_SIZE_T " bytes (should be %d)\n", sizeof(a), sizeof(a.dw), FP_DW_SIZE, sizeof(a.w[0]), FP_W0_SIZE);