]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_interval): Fix indentation and coding style. Add info in error.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Sep 2005 14:18:10 +0000 (14:18 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Sep 2005 14:18:10 +0000 (14:18 +0000)
src/intervals.c

index e9d87a10b78077842c93e45337edfb92e08036ae..07845f956660aad0b584b7455c3b3ab7ba100826 100644 (file)
@@ -791,14 +791,14 @@ update_interval (i, pos)
          /* Move right. */
          if (pos < INTERVAL_LAST_POS (i) + TOTAL_LENGTH (i->right))
            {
-             i->right->position = INTERVAL_LAST_POS (i) +
-               LEFT_TOTAL_LENGTH (i->right);
+             i->right->position = INTERVAL_LAST_POS (i)
+               LEFT_TOTAL_LENGTH (i->right);
              i = i->right;             /* Move to the right child */
            }
          else if (NULL_PARENT (i))
-           error ("Point after end of properties");
+           error ("Point %d after end of properties", pos);
          else
-             i = INTERVAL_PARENT (i);
+            i = INTERVAL_PARENT (i);
          continue;
        }
       else