From: Paul Eggert Date: Mon, 15 May 2023 01:51:24 +0000 (-0700) Subject: Prefer PTRDIFF_WIDTH in sort.c X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f8a5989b651c229e5cc7b59fb6dcedd33875f4b;p=emacs.git Prefer PTRDIFF_WIDTH in sort.c * src/sort.c (MAX_MERGE_PENDING): Prefer PTRDIFF_WIDTH to rolling our own substitute. --- diff --git a/src/sort.c b/src/sort.c index 34d0d690198..706c057dab0 100644 --- a/src/sort.c +++ b/src/sort.c @@ -40,7 +40,7 @@ along with GNU Emacs. If not, see . */ minimal length. So the number of bits in a ptrdiff_t is plenty large enough for all cases. */ -#define MAX_MERGE_PENDING (sizeof (ptrdiff_t) * 8) +#define MAX_MERGE_PENDING PTRDIFF_WIDTH /* Once we get into galloping mode, we stay there as long as both runs win at least GALLOP_WIN_MIN consecutive times. */