Commit a0aa1c61 authored by Niels Möller's avatar Niels Möller

Fix pointer signedness warning in sexp-conv.

parent 34b3a642
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
* testsuite/sexp-format-test.c (test_main): Likewise. * testsuite/sexp-format-test.c (test_main): Likewise.
* testsuite/rsa-encrypt-test.c (test_main): Likewise. * testsuite/rsa-encrypt-test.c (test_main): Likewise.
* tools/nettle-lfib-stream.c (main): Likewise. * tools/nettle-lfib-stream.c (main): Likewise.
* tools/output.c (sexp_put_string): Likewise.
* testsuite/testutils.c (test_armor): Change ascii argument to * testsuite/testutils.c (test_armor): Change ascii argument to
const char *. const char *.
......
...@@ -203,7 +203,7 @@ sexp_put_string(struct sexp_output *output, enum sexp_mode mode, ...@@ -203,7 +203,7 @@ sexp_put_string(struct sexp_output *output, enum sexp_mode mode,
{ {
if (!string->size) if (!string->size)
sexp_put_data(output, 2, sexp_put_data(output, 2,
(mode == SEXP_ADVANCED) ? "\"\"": "0:"); (const uint8_t *) ((mode == SEXP_ADVANCED) ? "\"\"": "0:"));
else if (mode == SEXP_ADVANCED) else if (mode == SEXP_ADVANCED)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment