diff options
| author | Paul Eggert | 2023-05-14 18:51:24 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-05-14 19:28:14 -0700 |
| commit | 9f8a5989b651c229e5cc7b59fb6dcedd33875f4b (patch) | |
| tree | 3770b22b63c8f664ffbf465b8031c00eb6526489 /src/sort.c | |
| parent | 85c4efc9f415e76244580dc85cce99c4df6ea4e8 (diff) | |
| download | emacs-9f8a5989b651c229e5cc7b59fb6dcedd33875f4b.tar.gz emacs-9f8a5989b651c229e5cc7b59fb6dcedd33875f4b.zip | |
Prefer PTRDIFF_WIDTH in sort.c
* src/sort.c (MAX_MERGE_PENDING):
Prefer PTRDIFF_WIDTH to rolling our own substitute.
Diffstat (limited to 'src/sort.c')
| -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/>. */ | |||
| 40 | minimal length. So the number of bits in a ptrdiff_t is plenty large | 40 | minimal length. So the number of bits in a ptrdiff_t is plenty large |
| 41 | enough for all cases. */ | 41 | enough for all cases. */ |
| 42 | 42 | ||
| 43 | #define MAX_MERGE_PENDING (sizeof (ptrdiff_t) * 8) | 43 | #define MAX_MERGE_PENDING PTRDIFF_WIDTH |
| 44 | 44 | ||
| 45 | /* Once we get into galloping mode, we stay there as long as both runs | 45 | /* Once we get into galloping mode, we stay there as long as both runs |
| 46 | win at least GALLOP_WIN_MIN consecutive times. */ | 46 | win at least GALLOP_WIN_MIN consecutive times. */ |