]> git.eshelyaron.com Git - emacs.git/commitdiff
Prefer PTRDIFF_WIDTH in sort.c
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 01:51:24 +0000 (18:51 -0700)
committerPaul 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

index 34d0d690198ffb8c0203b4fcaf0001117d725579..706c057dab0e4aa000f2f1ae98fe99264c48a0e6 100644 (file)
@@ -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.  */