Comment fixes.
authorBruno Haible <bruno@clisp.org>
Wed, 4 Oct 2006 16:54:24 +0000 (16:54 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 4 Oct 2006 16:54:24 +0000 (16:54 +0000)
lib/gl_array_list.c
lib/gl_array_oset.c
lib/gl_carray_list.c

index 811a309..a9f1a73 100644 (file)
@@ -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)
index b73d690..c2f6f61 100644 (file)
@@ -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
        {
index 86fce07..7df371c 100644 (file)
@@ -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;