Fix some type derpery.
This commit is contained in:
parent
a5d0770268
commit
dddd4d4777
|
@ -115,7 +115,7 @@ static int rarch_main_data_http_iterate_transfer(rarch_task_t *task)
|
||||||
|
|
||||||
if (!net_http_update(http->handle, &pos, &tot))
|
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
|
/* FIXME/TODO - warning 68: integer conversion resulted in a change
|
||||||
* of sign ^*/
|
* of sign ^*/
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -55,7 +55,7 @@ struct rarch_task {
|
||||||
char *error;
|
char *error;
|
||||||
|
|
||||||
/* -1 = unmettered, 0-100 progress value */
|
/* -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 */
|
char *title; /* handler can modify but will be free()d automatically if non-null */
|
||||||
|
|
||||||
/* don't touch this. */
|
/* don't touch this. */
|
||||||
|
|
Loading…
Reference in New Issue