diff options
author | Mattias Andrée <maandree@kth.se> | 2022-01-18 17:54:49 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-18 17:54:49 +0100 |
commit | edb70e343f3000dfef1f38583e88e74d1e71d804 (patch) | |
tree | 9c900264882428578bba81748c3a773faec6ebc0 /libar2_encode_params.c | |
parent | Fix typo: libar2_earse -> libar2_erase (diff) | |
download | libar2-edb70e343f3000dfef1f38583e88e74d1e71d804.tar.gz libar2-edb70e343f3000dfef1f38583e88e74d1e71d804.tar.bz2 libar2-edb70e343f3000dfef1f38583e88e74d1e71d804.tar.xz |
Improve portability
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libar2_encode_params.c')
-rw-r--r-- | libar2_encode_params.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libar2_encode_params.c b/libar2_encode_params.c index cdf634a..498de9c 100644 --- a/libar2_encode_params.c +++ b/libar2_encode_params.c @@ -8,12 +8,12 @@ libar2_encode_params(char *buf, const struct libar2_argon2_parameters *params) size_t off; #define FMT_AND_ARGS\ - "$%s$v=%i$m=%ju,t=%ju,p=%ju$",\ + "$%s$v=%i$m=%lu,t=%lu,p=%lu$",\ libar2_type_to_string(params->type, LIBAR2_LOWER_CASE),\ (int)params->version,\ - (uintmax_t)params->m_cost,\ - (uintmax_t)params->t_cost,\ - (uintmax_t)params->lanes + (unsigned long int)params->m_cost,\ + (unsigned long int)params->t_cost,\ + (unsigned long int)params->lanes if (buf) { off = (size_t)sprintf(buf, FMT_AND_ARGS); |