From 5f6dcb1c666e931c4bbf3c3385b5334b904ed025 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 2 Nov 2020 19:55:48 +0200 Subject: [PATCH] Fix a recent change in dired.c * src/dired.c (directory_files_internal): Fix type of integer variables to avoid overflow in 32-bit builds --with-wide-int. --- src/dired.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dired.c b/src/dired.c index 039dd68c177..feb5f05cb18 100644 --- a/src/dired.c +++ b/src/dired.c @@ -167,7 +167,7 @@ directory_files_internal (Lisp_Object directory, Lisp_Object full, Lisp_Object match, Lisp_Object nosort, bool attrs, Lisp_Object id_format, Lisp_Object return_count) { - ptrdiff_t ind = 0, last = MOST_POSITIVE_FIXNUM; + EMACS_INT ind = 0, last = MOST_POSITIVE_FIXNUM; if (!NILP (return_count)) { -- 2.39.2