mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(HTTP Task) Fix progress indicator on 32bit systems
This commit is contained in:
parent
5794c2051c
commit
ccbb3f0960
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user