diff --git a/tasks/task_http.c b/tasks/task_http.c index ceb59e203d..f930130778 100644 --- a/tasks/task_http.c +++ b/tasks/task_http.c @@ -115,7 +115,7 @@ static int rarch_main_data_http_iterate_transfer(rarch_task_t *task) if (!net_http_update(http->handle, &pos, &tot)) { - task->progress = (tot == 0) ? -1 : (pos * 100 / tot); + task->progress = (tot == 0) ? -1 : (signed)(pos * 100 / tot); /* FIXME/TODO - warning 68: integer conversion resulted in a change * of sign ^*/ return -1; diff --git a/tasks/tasks.h b/tasks/tasks.h index 1a53edf827..df8fc5b108 100644 --- a/tasks/tasks.h +++ b/tasks/tasks.h @@ -55,7 +55,7 @@ struct rarch_task { char *error; /* -1 = unmettered, 0-100 progress value */ - char progress; + int8_t progress; char *title; /* handler can modify but will be free()d automatically if non-null */ /* don't touch this. */