From: Eli Zaretskii Date: Mon, 2 Nov 2020 17:55:48 +0000 (+0200) Subject: Fix a recent change in dired.c X-Git-Tag: emacs-28.0.90~5280 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5f6dcb1c666e931c4bbf3c3385b5334b904ed025;p=emacs.git 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. --- 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)) {