1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 00:28:11 +00:00

Make size_t what size_t is

This commit is contained in:
jsteube 2017-08-16 16:14:08 +02:00
parent ac9bc55c9e
commit 0dcec01623

View File

@ -3874,8 +3874,8 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
// scryptV stuff
u32 scrypt_tmp_size = 0;
u32 scrypt_tmto_final = 0;
size_t scrypt_tmp_size = 0;
size_t scrypt_tmto_final = 0;
size_t size_scrypt = 4;
@ -4424,7 +4424,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
}
else if ((opencl_ctx->force_jit_compilation == 8900) || (opencl_ctx->force_jit_compilation == 15700))
{
snprintf (build_opts_update, sizeof (build_opts_update) - 1, "%s -DSCRYPT_N=%u -DSCRYPT_R=%u -DSCRYPT_P=%u -DSCRYPT_TMTO=%u -DSCRYPT_TMP_ELEM=%u", build_opts, hashes->salts_buf[0].scrypt_N, hashes->salts_buf[0].scrypt_r, hashes->salts_buf[0].scrypt_p, 1u << scrypt_tmto_final, scrypt_tmp_size / 16);
snprintf (build_opts_update, sizeof (build_opts_update) - 1, "%s -DSCRYPT_N=%u -DSCRYPT_R=%u -DSCRYPT_P=%u -DSCRYPT_TMTO=%u -DSCRYPT_TMP_ELEM=%" PRIu64, build_opts, hashes->salts_buf[0].scrypt_N, hashes->salts_buf[0].scrypt_r, hashes->salts_buf[0].scrypt_p, 1u << scrypt_tmto_final, (u64) scrypt_tmp_size / 16);
}
else
{