Skip to content

Commit

Permalink
Rename function to avoid name clash on MingW
Browse files Browse the repository at this point in the history
  • Loading branch information
locpyl-tidnyd committed Mar 27, 2021
1 parent 4da94a6 commit 11286ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ int decode_string(argon2_context *ctx, const char *str, argon2_type type) {
#undef BIN
}

void itoa(int i, char b[]){
static void encode_decimal(int i, char b[]){
#ifdef ARGON2_JS

// because this generates WASM error:
Expand Down Expand Up @@ -416,7 +416,7 @@ int encode_string(char *dst, size_t dst_len, argon2_context *ctx,
#define SX(x) \
do { \
char tmp[30]; \
itoa(x, tmp); \
encode_decimal(x, tmp); \
SS(tmp); \
} while ((void)0, 0)

Expand Down

0 comments on commit 11286ba

Please sign in to comment.