]> git.eshelyaron.com Git - emacs.git/commitdiff
* alloc.c (compact_small_strings): Tighten assertion a little.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Apr 2011 00:42:41 +0000 (17:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Apr 2011 00:42:41 +0000 (17:42 -0700)
src/ChangeLog
src/alloc.c

index 9aff9fbbc53ac4ac40e49b87e8ac72e5560534b2..4af83e1d97360a778844c01d12eda1527b36153a 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-19  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * alloc.c (compact_small_strings): Tighten assertion a little.
+
        Replace pEd with more-general pI, and fix some printf arg casts.
        * lisp.h (pI): New macro, generalizing old pEd macro to other
        conversion specifiers.  For example, use "...%"pI"d..." rather
index 423c1f167db8374f17662912b2ec59e9697665fd..82be8a903b4638f465efba451f1772cd3c469d4b 100644 (file)
@@ -2140,7 +2140,7 @@ compact_small_strings (void)
              /* Copy, and update the string's `data' pointer.  */
              if (from != to)
                {
-                 xassert (tb != b || to <= from);
+                 xassert (tb != b || to < from);
                  memmove (to, from, nbytes + GC_STRING_EXTRA);
                  to->string->data = SDATA_DATA (to);
                }