Skip to content

Commit f698caa

Browse files
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.
1 parent b5b8e7b commit f698caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/schnorrsig/tests_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void test_schnorrsig_api(void) {
219219
/* Checks that hash initialized by secp256k1_schnorrsig_sha256_tagged has the
220220
* expected state. */
221221
void test_schnorrsig_sha256_tagged(void) {
222-
char tag[17] = "BIP0340/challenge";
222+
unsigned char tag[17] = "BIP0340/challenge";
223223
secp256k1_sha256 sha;
224224
secp256k1_sha256 sha_optimized;
225225

0 commit comments

Comments
 (0)