Skip to content

Commit

Permalink
Use unsigned char consistently for byte arrays
Browse files Browse the repository at this point in the history
C++ does not allow initialization with string literals but we do it in other
places and -fpermissive will convince g++ to compile.
  • Loading branch information
real-or-random committed Jul 4, 2021
1 parent b5b8e7b commit f698caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/schnorrsig/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f698caa

Please sign in to comment.