+2010-04-24 Bruno Haible <bruno@clisp.org>
+
+ Avoid a gcc warning.
+ * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
+ of correct type for %08lx directive.
+ Reported by Eric Blake.
+
2010-04-24 Bruno Haible <bruno@clisp.org>
vasnprintf: Correct errno value in case of out-of-memory.
2010-04-21 Simon Josefsson <simon@josefsson.org>
- * tests/test-vasprintf.c: Test %08lx.
+ * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2010-04-20 Eric Blake <eblake@redhat.com>
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);
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);