From 69481da786be74ed3f89eebafbd38b9de9a1355e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 24 Sep 2010 09:32:25 -0400 Subject: [PATCH] Fix int/EMACS_INT use in callproc.c. callproc.c (Fcall_process): Use EMACS_INT for count of characters read from the subprocess. --- src/ChangeLog | 3 +++ src/callproc.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 83295bc5f09..2af0040e3c2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2010-09-24 Eli Zaretskii + * callproc.c (Fcall_process): Use EMACS_INT for count of + characters read from the subprocess. + * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer positions. (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer diff --git a/src/callproc.c b/src/callproc.c index 8c1384df6a1..6f70631a484 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -678,9 +678,9 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) QUIT; { - register int nread; + register EMACS_INT nread; int first = 1; - int total_read = 0; + EMACS_INT total_read = 0; int carryover = 0; int display_on_the_fly = display_p; struct coding_system saved_coding; -- 2.39.5