X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fsnprintf.c;h=9fd2dd743097117fd0306130ea293ee888072912;hp=2b38c43d734547ff145d7ec6b45329341f28245f;hb=014988e9a303f1617be511468d70a235a2826362;hpb=97070b0c950398e0f8459d67081086089d426b51 diff --git a/functions/stdio/snprintf.c b/functions/stdio/snprintf.c index 2b38c43..9fd2dd7 100644 --- a/functions/stdio/snprintf.c +++ b/functions/stdio/snprintf.c @@ -277,7 +277,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;