From f88cc0f43372c28b594a610cb1f00cca9125e273 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 8 Feb 2014 20:19:53 +0100 Subject: [PATCH] ges-group: Properly check for integer underflows error: comparison of unsigned expression < 0 is always false --- ges/ges-group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ges/ges-group.c b/ges/ges-group.c index 5bbc6cb..f30b9c9 100644 --- a/ges/ges-group.c +++ b/ges/ges-group.c @@ -162,7 +162,7 @@ _child_group_priority_changed (GESTimelineElement * child, offset = _ges_container_get_priority_offset (container, child); - if (_PRIORITY (group) + offset < 0 || + if (_PRIORITY (group) < offset || (GES_TIMELINE_ELEMENT_TIMELINE (group) && _PRIORITY (group) + offset + GES_CONTAINER_HEIGHT (group) > g_list_length (GES_TIMELINE_ELEMENT_TIMELINE (group)->layers))) { -- 2.7.4