X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fsprintf.c;h=41bcc10be3c313cd890939fb84e365eaa2435ba0;hp=b36a80d64fbb6e8afa32e302e1cec66e3d9f5442;hb=014988e9a303f1617be511468d70a235a2826362;hpb=97070b0c950398e0f8459d67081086089d426b51 diff --git a/functions/stdio/sprintf.c b/functions/stdio/sprintf.c index b36a80d..41bcc10 100644 --- a/functions/stdio/sprintf.c +++ b/functions/stdio/sprintf.c @@ -230,7 +230,7 @@ int main( void ) TESTCASE( strcmp( buffer, "x" ) == 0 ); TESTCASE( testprintf( buffer, 100, "%s", "abcdef" ) == 6 ); TESTCASE( strcmp( buffer, "abcdef" ) == 0 ); - TESTCASE( testprintf( buffer, 100, "%p", 0xdeadbeef ) == 10 ); + TESTCASE( testprintf( buffer, 100, "%p", (void *)0xdeadbeef ) == 10 ); TESTCASE( strcmp( buffer, "0xdeadbeef" ) == 0 ); { int val1, val2;