From 5a0d317d0459a0f0955c6f4751d75730ab4b4055 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 4 Oct 2006 16:54:24 +0000 Subject: [PATCH] Comment fixes. --- lib/gl_array_list.c | 4 ++-- lib/gl_array_oset.c | 4 ++-- lib/gl_carray_list.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/gl_array_list.c b/lib/gl_array_list.c index 811a30913b..a9f1a73e82 100644 --- a/lib/gl_array_list.c +++ b/lib/gl_array_list.c @@ -471,7 +471,7 @@ gl_array_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, /* At each loop iteration, low < high; for indices < low the values are smaller than ELT; for indices >= high the values are greater - than ELT. So, if the element occurs in the list, is at + than ELT. So, if the element occurs in the list, it is at low <= position < high. */ do { @@ -493,7 +493,7 @@ gl_array_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, low <= position <= high. */ while (low < high) { - size_t mid2 = low + (high - low) / 2; /* low <= mid < high */ + size_t mid2 = low + (high - low) / 2; /* low <= mid2 < high */ int cmp2 = compar (list->elements[mid2], elt); if (cmp2 < 0) diff --git a/lib/gl_array_oset.c b/lib/gl_array_oset.c index b73d69031f..c2f6f61fbd 100644 --- a/lib/gl_array_oset.c +++ b/lib/gl_array_oset.c @@ -76,7 +76,7 @@ gl_array_indexof (gl_oset_t set, const void *elt) /* At each loop iteration, low < high; for indices < low the values are smaller than ELT; for indices >= high the values are greater - than ELT. So, if the element occurs in the list, is at + than ELT. So, if the element occurs in the list, it is at low <= position < high. */ do { @@ -173,7 +173,7 @@ gl_array_add (gl_oset_t set, const void *elt) /* At each loop iteration, low < high; for indices < low the values are smaller than ELT; for indices >= high the values are greater - than ELT. So, if the element occurs in the list, is at + than ELT. So, if the element occurs in the list, it is at low <= position < high. */ do { diff --git a/lib/gl_carray_list.c b/lib/gl_carray_list.c index 86fce07c1a..7df371caf1 100644 --- a/lib/gl_carray_list.c +++ b/lib/gl_carray_list.c @@ -607,7 +607,7 @@ gl_carray_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, /* At each loop iteration, low < high; for indices < low the values are smaller than ELT; for indices >= high the values are greater - than ELT. So, if the element occurs in the list, is at + than ELT. So, if the element occurs in the list, it is at low <= position < high. */ do { @@ -636,7 +636,7 @@ gl_carray_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, low <= position <= high. */ while (low < high) { - size_t mid2 = low + (high - low) / 2; /* low <= mid < high */ + size_t mid2 = low + (high - low) / 2; /* low <= mid2 < high */ size_t i_mid2; int cmp2; -- 2.30.2