[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 11/23] test/gdc.c: Fix off-by-one error when using `-s`.
From: |
Thomas Dickey |
Subject: |
Re: [PATCH 11/23] test/gdc.c: Fix off-by-one error when using `-s`. |
Date: |
Sat, 22 Jun 2024 18:27:27 -0400 |
On Sat, Jun 22, 2024 at 12:48:53PM -0500, G. Branden Robinson wrote:
> The reverse-video-affected "scrolling" area included the bottom of the
> box surrounding the clock, which looked weird. Fix it.
Actually this was intentional (you can make it optional, I suppose)
> ---
> test/gdc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/gdc.c b/test/gdc.c
> index 4c474b174..c30e2a9d5 100644
> --- a/test/gdc.c
> +++ b/test/gdc.c
> @@ -338,7 +338,7 @@ main(int argc, char *argv[])
> next[k] = 0;
> for (s = 1; s >= 0; s--) {
> standt(s);
> - for (i = 0; i < 6; i++) {
> + for (i = 0; i < 5; i++) {
> if ((a = (newer[i] ^ older[i]) & (s ? newer : older)[i])
> != 0) {
> for (j = 0, t = 1 << 26; t; t >>= 1, j++) {
> --
> 2.30.2
>
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature