Mercurial > hg > dmlib
changeset 2390:88be5cf55caf
Use correct format specifier DM_PRIu_SIZE_T instead of DM_PRId64.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2020 20:37:54 +0200 |
parents | 647671a9a0b8 |
children | d1992206765a |
files | tests/fptest.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);