diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-05-14 18:51:24 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-05-14 19:28:14 -0700 |
commit | 9f8a5989b651c229e5cc7b59fb6dcedd33875f4b (patch) | |
tree | 3770b22b63c8f664ffbf465b8031c00eb6526489 | |
parent | 85c4efc9f415e76244580dc85cce99c4df6ea4e8 (diff) | |
download | emacs-9f8a5989b651c229e5cc7b59fb6dcedd33875f4b.tar.gz |
Prefer PTRDIFF_WIDTH in sort.c
* src/sort.c (MAX_MERGE_PENDING):
Prefer PTRDIFF_WIDTH to rolling our own substitute.
-rw-r--r-- | src/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |