From cf6d6a1a6e7e4cb798a9bfe58afaab156c78bef8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 13 Feb 2004 23:02:58 +0000 Subject: [PATCH] Use do instead of while. (#134031, Morten Welinder); Sat Feb 14 00:05:18 2004 Matthias Clasen * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): Use do instead of while. (#134031, Morten Welinder); --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtktreemodelfilter.c | 3 ++- 6 files changed, 27 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a3899ce1a..a30ec5d1de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Feb 14 00:05:18 2004 Matthias Clasen + + * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): + Use do instead of while. (#134031, Morten Welinder); + Sat Feb 14 00:00:52 2004 Matthias Clasen * configure.in: Suppress xsltproc and xmlcatalog checks diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 7a3899ce1a..a30ec5d1de 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Sat Feb 14 00:05:18 2004 Matthias Clasen + + * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): + Use do instead of while. (#134031, Morten Welinder); + Sat Feb 14 00:00:52 2004 Matthias Clasen * configure.in: Suppress xsltproc and xmlcatalog checks diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 7a3899ce1a..a30ec5d1de 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Sat Feb 14 00:05:18 2004 Matthias Clasen + + * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): + Use do instead of while. (#134031, Morten Welinder); + Sat Feb 14 00:00:52 2004 Matthias Clasen * configure.in: Suppress xsltproc and xmlcatalog checks diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 7a3899ce1a..a30ec5d1de 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Sat Feb 14 00:05:18 2004 Matthias Clasen + + * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): + Use do instead of while. (#134031, Morten Welinder); + Sat Feb 14 00:00:52 2004 Matthias Clasen * configure.in: Suppress xsltproc and xmlcatalog checks diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 7a3899ce1a..a30ec5d1de 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Sat Feb 14 00:05:18 2004 Matthias Clasen + + * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): + Use do instead of while. (#134031, Morten Welinder); + Sat Feb 14 00:00:52 2004 Matthias Clasen * configure.in: Suppress xsltproc and xmlcatalog checks diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c index 691e7afe8d..b6934c90b0 100644 --- a/gtk/gtktreemodelfilter.c +++ b/gtk/gtktreemodelfilter.c @@ -992,7 +992,7 @@ bsearch_elt_with_offset (GArray *array, return NULL; } - while (start != end) + do { middle = (start + end) / 2; @@ -1005,6 +1005,7 @@ bsearch_elt_with_offset (GArray *array, else break; } + while (start != end); if (elt->offset == offset) {