Skip to content

Commit

Permalink
Fix a typo in the error message
Browse files Browse the repository at this point in the history
The code has been copy-pasted from the `precompute_ecmult_gen.c` source
file.
  • Loading branch information
hebasto committed Jun 24, 2023
1 parent 926dd3e commit 67887ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/precompute_ecmult.c
Expand Up @@ -56,11 +56,12 @@ static void print_two_tables(FILE *fp, int window_g) {
int main(void) {
/* Always compute all tables for window sizes up to 15. */
int window_g = (ECMULT_WINDOW_SIZE < 15) ? 15 : ECMULT_WINDOW_SIZE;
const char outfile[] = "src/precomputed_ecmult.c";
FILE* fp;

fp = fopen("src/precomputed_ecmult.c","w");
fp = fopen(outfile, "w");
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;
}

Expand Down

0 comments on commit 67887ae

Please sign in to comment.