(HTTP Task) Fix progress indicator on 32bit systems

This commit is contained in:
twinaphex 2019-05-06 03:45:58 +02:00
parent 5794c2051c
commit ccbb3f0960

View File

@ -126,7 +126,7 @@ static int task_http_iterate_transfer(retro_task_t *task)
if (!net_http_update(http->handle, &pos, &tot))
{
task_set_progress(task, (tot == 0) ? -1 : (signed)(pos * 100 / tot));
task_set_progress(task, (tot == 0) ? -1 : (signed)pos / (tot / 100));
return -1;
}