shell: Fix signed-unsigned comparisons

This commit is contained in:
Florian Müllner 2015-09-23 19:11:05 +02:00
parent 52995416fd
commit 825146f1e3
3 changed files with 5 additions and 5 deletions

View File

@ -699,7 +699,7 @@ static int
shell_app_get_last_user_time (ShellApp *app) shell_app_get_last_user_time (ShellApp *app)
{ {
GSList *iter; GSList *iter;
int last_user_time; guint32 last_user_time;
last_user_time = 0; 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)); last_user_time = MAX (last_user_time, meta_window_get_user_time (iter->data));
} }
return last_user_time; return (int)last_user_time;
} }
/** /**

View File

@ -626,7 +626,7 @@ shell_perf_log_collect_statistics (ShellPerfLog *perf_log)
{ {
gint64 event_time = get_time (); gint64 event_time = get_time ();
gint64 collection_time; gint64 collection_time;
int i; guint i;
if (!perf_log->enabled) if (!perf_log->enabled)
return; return;
@ -819,7 +819,7 @@ shell_perf_log_dump_events (ShellPerfLog *perf_log,
GError **error) GError **error)
{ {
GString *output; GString *output;
int i; guint i;
output = g_string_new (NULL); output = g_string_new (NULL);
g_string_append (output, "[ "); g_string_append (output, "[ ");

View File

@ -84,7 +84,7 @@ shell_util_get_transformed_allocation (ClutterActor *actor,
*/ */
ClutterVertex v[4]; ClutterVertex v[4];
gfloat x_min, x_max, y_min, y_max; gfloat x_min, x_max, y_min, y_max;
gint i; guint i;
g_return_if_fail (CLUTTER_IS_ACTOR (actor)); g_return_if_fail (CLUTTER_IS_ACTOR (actor));