Mercurial > hg > octave-nkf > gnulib-hg
changeset 7398:df2f24a4f4b4
Comment fixes.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 04 Oct 2006 16:54:24 +0000 |
parents | 205d15e72fe9 |
children | 1f093fbe7e89 |
files | lib/gl_array_list.c lib/gl_array_oset.c lib/gl_carray_list.c |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/gl_array_list.c +++ b/lib/gl_array_list.c @@ -471,7 +471,7 @@ /* 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 @@ 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)
--- a/lib/gl_array_oset.c +++ b/lib/gl_array_oset.c @@ -76,7 +76,7 @@ /* 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 @@ /* 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 {
--- a/lib/gl_carray_list.c +++ b/lib/gl_carray_list.c @@ -607,7 +607,7 @@ /* 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 @@ 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;