projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85c4efc
)
Prefer PTRDIFF_WIDTH in sort.c
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 15 May 2023 01:51:24 +0000
(18:51 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 15 May 2023 02:28:14 +0000
(19:28 -0700)
* src/sort.c (MAX_MERGE_PENDING):
Prefer PTRDIFF_WIDTH to rolling our own substitute.
src/sort.c
patch
|
blob
|
history
diff --git
a/src/sort.c
b/src/sort.c
index 34d0d690198ffb8c0203b4fcaf0001117d725579..706c057dab0e4aa000f2f1ae98fe99264c48a0e6 100644
(file)
--- 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. */