Clarify the code, gcc 4 complains about predecrement in MAX().

2005-06-30  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
	Clarify the code, gcc 4 complains about predecrement in MAX().
This commit is contained in:
Matthias Clasen 2005-06-30 19:07:16 +00:00 committed by Matthias Clasen
parent 9e4d008d25
commit 58824aa9bb
4 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2005-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
Clarify the code, gcc 4 complains about predecrement in MAX().
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
prematurely unregister callbacks.

View File

@ -1,5 +1,8 @@
2005-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
Clarify the code, gcc 4 complains about predecrement in MAX().
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
prematurely unregister callbacks.

View File

@ -1,5 +1,8 @@
2005-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
Clarify the code, gcc 4 complains about predecrement in MAX().
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
prematurely unregister callbacks.

View File

@ -827,7 +827,10 @@ gtk_tree_model_filter_fetch_child (GtkTreeModelFilter *filter,
g_array_insert_val (level->array, i, elt);
*index = i;
for (i = MAX (--i, 0); i < level->array->len; i++)
if (i > 0)
i--;
for ( ; i < level->array->len; i++)
{
FilterElt *e = &(g_array_index (level->array, FilterElt, i));
if (e->children)