Skip to content

Commit

Permalink
fix(ffi): switch to more canon type
Browse files Browse the repository at this point in the history
culong on Windows ends up being uint32, which doesnt match csize_t behaviour. Uint matches it closer, until csize_t is available.
  • Loading branch information
D-Nice committed Feb 10, 2020
1 parent 37cd921 commit 6fd3ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/argon2_bind.nim
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ func argon2_encodedlen(
saltLen: cuint,
hashLen: cuint,
algoType: Argon2Type
): culong
# TODO replace culong with csize_t in upcoming version...
): uint
# TODO replace uint with csize_t in upcoming version...

# https://github.com/P-H-C/phc-winner-argon2/blob/62358ba2123abd17fccf2a108a301d4b52c01a7c/include/argon2.h#417
func argon2_error_message(
Expand Down

0 comments on commit 6fd3ffd

Please # to comment.