shell: Fix signed-unsigned comparisons
This commit is contained in:
parent
52995416fd
commit
825146f1e3
@ -699,7 +699,7 @@ static int
|
||||
shell_app_get_last_user_time (ShellApp *app)
|
||||
{
|
||||
GSList *iter;
|
||||
int last_user_time;
|
||||
guint32 last_user_time;
|
||||
|
||||
last_user_time = 0;
|
||||
|
||||
@ -709,7 +709,7 @@ shell_app_get_last_user_time (ShellApp *app)
|
||||
last_user_time = MAX (last_user_time, meta_window_get_user_time (iter->data));
|
||||
}
|
||||
|
||||
return last_user_time;
|
||||
return (int)last_user_time;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -626,7 +626,7 @@ shell_perf_log_collect_statistics (ShellPerfLog *perf_log)
|
||||
{
|
||||
gint64 event_time = get_time ();
|
||||
gint64 collection_time;
|
||||
int i;
|
||||
guint i;
|
||||
|
||||
if (!perf_log->enabled)
|
||||
return;
|
||||
@ -819,7 +819,7 @@ shell_perf_log_dump_events (ShellPerfLog *perf_log,
|
||||
GError **error)
|
||||
{
|
||||
GString *output;
|
||||
int i;
|
||||
guint i;
|
||||
|
||||
output = g_string_new (NULL);
|
||||
g_string_append (output, "[ ");
|
||||
|
@ -84,7 +84,7 @@ shell_util_get_transformed_allocation (ClutterActor *actor,
|
||||
*/
|
||||
ClutterVertex v[4];
|
||||
gfloat x_min, x_max, y_min, y_max;
|
||||
gint i;
|
||||
guint i;
|
||||
|
||||
g_return_if_fail (CLUTTER_IS_ACTOR (actor));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user