From ccbb3f096031ca9f11f2ce56e96a5cdd1cf4347d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 6 May 2019 03:45:58 +0200 Subject: [PATCH] (HTTP Task) Fix progress indicator on 32bit systems --- tasks/task_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/task_http.c b/tasks/task_http.c index 6167b75ece..86423bf11f 100644 --- a/tasks/task_http.c +++ b/tasks/task_http.c @@ -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; }