From 3c616cfa1341ea3dd54dd8b1927213e5e21aa322 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 18 Apr 2011 17:42:41 -0700 Subject: [PATCH] * alloc.c (compact_small_strings): Tighten assertion a little. --- src/ChangeLog | 2 ++ src/alloc.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.2