diff --git a/src/opencl.c b/src/opencl.c index 8450f5923..56f875382 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -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 {