X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fsnprintf.c;h=9fd2dd743097117fd0306130ea293ee888072912;hb=74e6932efc15635447ec943fc8d83fece825907c;hp=2b38c43d734547ff145d7ec6b45329341f28245f;hpb=1348d759ad8b0bee9bfb91329ab4181aef618a67;p=pdclib.old 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;