From f698caaff6a263390d7ded5be4751dbc1c862b1e Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Sun, 4 Jul 2021 11:37:06 +0200 Subject: [PATCH] Use unsigned char consistently for byte arrays C++ does not allow initialization with string literals but we do it in other places and -fpermissive will convince g++ to compile. --- src/modules/schnorrsig/tests_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/schnorrsig/tests_impl.h b/src/modules/schnorrsig/tests_impl.h index e804df5041570..59357afa99ad6 100644 --- a/src/modules/schnorrsig/tests_impl.h +++ b/src/modules/schnorrsig/tests_impl.h @@ -219,7 +219,7 @@ void test_schnorrsig_api(void) { /* Checks that hash initialized by secp256k1_schnorrsig_sha256_tagged has the * expected state. */ void test_schnorrsig_sha256_tagged(void) { - char tag[17] = "BIP0340/challenge"; + unsigned char tag[17] = "BIP0340/challenge"; secp256k1_sha256 sha; secp256k1_sha256 sha_optimized;