From: Bruno Haible Date: Wed, 4 Oct 2006 16:54:24 +0000 (+0000) Subject: Comment fixes. X-Git-Tag: cvs-readonly~1795 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=5a0d317d0459a0f0955c6f4751d75730ab4b4055;p=gnulib.git Comment fixes. --- diff --git a/lib/gl_array_list.c b/lib/gl_array_list.c index 811a30913..a9f1a73e8 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 b73d69031..c2f6f61fb 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 86fce07c1..7df371caf 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;