X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vasprintf.c;h=6882d18d62fcaa29a838852216b16c26938ba137;hb=8694861a4bfbd93e71863517f5b78a7052e3b190;hp=e5676f4a9f536c63189f5947f00710f9461cec04;hpb=6d126a8f1bcb55344ff601decd524f53b54234fa;p=gnulib.git diff --git a/tests/test-vasprintf.c b/tests/test-vasprintf.c index e5676f4a9..6882d18d6 100644 --- a/tests/test-vasprintf.c +++ b/tests/test-vasprintf.c @@ -1,5 +1,5 @@ /* Test of vasprintf() and asprintf() functions. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -60,7 +60,7 @@ test_vasprintf () for (repeat = 0; repeat <= 8; repeat++) { char *result; - int retval = my_asprintf (&result, "%08lx", 12345); + int retval = my_asprintf (&result, "%08lx", 12345UL); ASSERT (retval == 8); ASSERT (result != NULL); ASSERT (strcmp (result, "00003039") == 0); @@ -86,7 +86,7 @@ test_asprintf () for (repeat = 0; repeat <= 8; repeat++) { char *result; - int retval = asprintf (&result, "%08lx", 12345); + int retval = asprintf (&result, "%08lx", 12345UL); ASSERT (retval == 8); ASSERT (result != NULL); ASSERT (strcmp (result, "00003039") == 0);