Merge bitcoin-core/secp256k1#1355: Fix a typo in the error message
67887ae65cf11d02c7055709082acd0e5d86db9b Fix a typo in the error message (Hennadii Stepanov) Pull request description: The code has been copy-pasted from the `precompute_ecmult_gen.c` source file. ACKs for top commit: real-or-random: ACK 67887ae65cf11d02c7055709082acd0e5d86db9b Tree-SHA512: d6874949310197e5d2d6c43f5a7c2165b4ee0f6cbe3cc1491d0f97163fa5329ebeab2b2adf10246c87382016fbe738c69dfd3f2253e93c906bf404cbf439b12a
This commit is contained in:
commit
fd491ea1bb
@ -56,11 +56,12 @@ static void print_two_tables(FILE *fp, int window_g) {
|
|||||||
int main(void) {
|
int main(void) {
|
||||||
/* Always compute all tables for window sizes up to 15. */
|
/* Always compute all tables for window sizes up to 15. */
|
||||||
int window_g = (ECMULT_WINDOW_SIZE < 15) ? 15 : ECMULT_WINDOW_SIZE;
|
int window_g = (ECMULT_WINDOW_SIZE < 15) ? 15 : ECMULT_WINDOW_SIZE;
|
||||||
|
const char outfile[] = "src/precomputed_ecmult.c";
|
||||||
FILE* fp;
|
FILE* fp;
|
||||||
|
|
||||||
fp = fopen("src/precomputed_ecmult.c","w");
|
fp = fopen(outfile, "w");
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
fprintf(stderr, "Could not open src/precomputed_ecmult.h for writing!\n");
|
fprintf(stderr, "Could not open %s for writing!\n", outfile);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user