Re: [dev] [st] [PATCH 1/2] Fix commented out code

From: Ivan Delalande <colona_AT_ycc.fr>
Date: Wed, 29 Mar 2017 10:09:15 +0200

On Sat, Mar 25, 2017 at 11:02:42PM +0300, Alexander Krotov wrote:
> --- a/st.c
> +++ b/st.c
> _AT_@ -2537,7 +2537,7 @@ tresize(int col, int row)
> }
>
> /* allocate any new rows */
> - for (/* i == minrow */; i < row; i++) {
> + for (/* i = minrow */; i < row; i++) {
> term.line[i] = xmalloc(col * sizeof(Glyph));
> term.alt[i] = xmalloc(col * sizeof(Glyph));
> }

I don't think that's a typo, just a short form for "hey, watch out,
remember we still have `i == minrow` from the last loop here!". ;)

-- 
Ivan "Colona" Delalande
Received on Wed Mar 29 2017 - 10:09:15 CEST

This archive was generated by hypermail 2.3.0 : Wed Mar 29 2017 - 10:12:21 CEST