Comment fixes.
[pspp] / lib / gl_carray_list.c
index 86fce07c1ab2d1f6dc06defa2319c8eea43d700a..7df371caf1437f389b87a875e9cb997c45306a2d 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;