[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] location: fix EOF check
From: |
Akim Demaille |
Subject: |
Re: [PATCH] location: fix EOF check |
Date: |
Fri, 4 Oct 2013 15:21:00 +0200 |
Le 28 sept. 2013 à 00:00, Andreas Schwab <address@hidden> a écrit :
> * location.c (location_caret): Use int, not char, for values from
> getc.
> ---
> src/location.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/location.c b/src/location.c
> index 662b2a1..c873dcc 100644
> --- a/src/location.c
> +++ b/src/location.c
> @@ -188,7 +188,7 @@ location_caret (location loc, FILE *out)
> /* Read the actual line. Don't update the offset, so that we keep a pointer
> to the start of the line. */
> {
> - char c = getc (caret_info.source);
> + int c = getc (caret_info.source);
> if (c != EOF)
> {
> /* Quote the file, indent by a single column. */
Hi Andreas,
Thanks, installed in the maint branch.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] location: fix EOF check,
Akim Demaille <=