emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9f8a5989b65 15/16: Prefer PTRDIFF_WIDTH in sort.c


From: Paul Eggert
Subject: master 9f8a5989b65 15/16: Prefer PTRDIFF_WIDTH in sort.c
Date: Sun, 14 May 2023 22:28:25 -0400 (EDT)

branch: master
commit 9f8a5989b651c229e5cc7b59fb6dcedd33875f4b
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    Prefer PTRDIFF_WIDTH in sort.c
    
    * src/sort.c (MAX_MERGE_PENDING):
    Prefer PTRDIFF_WIDTH to rolling our own substitute.
---
 src/sort.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 
<https://www.gnu.org/licenses/>.  */
    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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]