1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-17 01:52:06 +00:00

Initializing u64 value with something 'u' seem to limit it's maximum value to 0xffffffff and then stop. So this broke restore support, as you can see when the restore pointer went > 0xffffffff, also in status view. cc @neheb

This commit is contained in:
jsteube 2016-09-04 21:57:00 +02:00
parent c8858cd969
commit 4366afecee
2 changed files with 2 additions and 2 deletions

View File

@ -5537,7 +5537,7 @@ static void *thread_calc (void *p)
u64 words_off = 0;
u64 words_fin = 0;
u64 max = -1u;
u64 max = -1llu;
while (max)
{

View File

@ -9578,7 +9578,7 @@ void read_restore (const char *eff_restore_file, restore_data_t *rd)
u64 get_lowest_words_done ()
{
u64 words_cur = -1u;
u64 words_cur = -1llu;
for (uint device_id = 0; device_id < data.devices_cnt; device_id++)
{