~ chicken-core (chicken-5) 99f526aabbf1d3f5a652ee98a23a7695ad3a1505
commit 99f526aabbf1d3f5a652ee98a23a7695ad3a1505 Author: Peter Bex <peter.bex@xs4all.nl> AuthorDate: Thu Oct 24 15:12:38 2013 +0200 Commit: Mario Domenech Goulart <mario.goulart@gmail.com> CommitDate: Mon Oct 28 19:42:05 2013 -0200 Get rid of clang warnings in embedded3 test Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com> diff --git a/tests/embedded3.c b/tests/embedded3.c index ebf328c4..3527defe 100644 --- a/tests/embedded3.c +++ b/tests/embedded3.c @@ -3,6 +3,12 @@ #include <chicken.h> #include <assert.h> +#ifdef C_SIXTY_FOUR +# define UWORD_FORMAT_STRING "0x%016lx" +#else +# define UWORD_FORMAT_STRING "0x%08x" +#endif + extern double baz(int); int main() { @@ -20,7 +26,7 @@ int main() { C_gc_protect(data, 1); - printf("data: %08x\n", val); + printf("data: "UWORD_FORMAT_STRING"\n", (C_uword)val); status = CHICKEN_eval_string_to_string("(bar)", buffer, 255); assert(!status); @@ -32,7 +38,7 @@ int main() { assert(status); printf("-> %s\n", buffer); - printf("data: %08x\n", val); + printf("data: "UWORD_FORMAT_STRING"\n", (C_uword)val); status = CHICKEN_eval_to_string(val, buffer, 255); assert(status);Trap