Skip to content

Commit

Permalink
Merge pull request #2 from locpyl-tidnyd/master
Browse files Browse the repository at this point in the history
Rename function to avoid name clash on MingW
  • Loading branch information
joemfb committed Jun 3, 2021
2 parents 4da94a6 + 11286ba commit a4c1e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoding.c
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 a4c1e3f

Please sign in to comment.