Use the proper types, add casts where necessary (bug 14401)

This commit is contained in:
rim
2018-05-30 21:46:29 +02:00
committed by Landry Breuil
parent 512e88ad6c
commit 1c09b7329b
7 changed files with 33 additions and 32 deletions

View File

@@ -297,7 +297,7 @@ task_list_find_for_pid (GArray *task_list, GPid pid, Task **task, guint *idx)
{
if (NULL != task_tmp)
{
(*idx) = (((size_t)task_tmp - (size_t)task_list->data) / sizeof(Task));
(*idx) = (guint)(((size_t)task_tmp - (size_t)task_list->data) / sizeof(Task));
}
else
{
@@ -545,5 +545,5 @@ set_priority_to_pid (GPid pid, gint priority)
gint
task_pid_compare_fn(gconstpointer a, gconstpointer b)
{
return (((Task*)a)->pid - ((Task*)b)->pid);
return (((const Task*)a)->pid - ((const Task*)b)->pid);
}