diff --git a/src/num_gmp_impl.h b/src/num_gmp_impl.h index 75ef9dcf682..067c151803b 100644 --- a/src/num_gmp_impl.h +++ b/src/num_gmp_impl.h @@ -279,7 +279,7 @@ void static secp256k1_num_set_hex(secp256k1_num_t *r, const char *a, int alen) { 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0 }; - char num[257] = {}; + unsigned char num[257] = {}; for (int i=0; i