From: Paul Eggert Date: Tue, 19 Apr 2011 00:42:41 +0000 (-0700) Subject: * alloc.c (compact_small_strings): Tighten assertion a little. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~252 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3c616cfa1341ea3dd54dd8b1927213e5e21aa322;p=emacs.git * alloc.c (compact_small_strings): Tighten assertion a little. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9aff9fbbc53..4af83e1d973 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-04-19 Paul Eggert + * 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 diff --git a/src/alloc.c b/src/alloc.c index 423c1f167db..82be8a903b4 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -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); }