From dddd4d4777fcb287520f1a83009b115e3ae1eddc Mon Sep 17 00:00:00 2001 From: Alcaro Date: Tue, 8 Dec 2015 20:00:18 +0100 Subject: [PATCH] Fix some type derpery. --- tasks/task_http.c | 2 +- tasks/tasks.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. */