[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/23] test/gdc.c: Fix off-by-one error when using `-s`.
From: |
G. Branden Robinson |
Subject: |
[PATCH 11/23] test/gdc.c: Fix off-by-one error when using `-s`. |
Date: |
Sat, 22 Jun 2024 12:48:53 -0500 |
The reverse-video-affected "scrolling" area included the bottom of the
box surrounding the clock, which looked weird. Fix it.
---
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
signature.asc
Description: PGP signature
- [PATCH 11/23] test/gdc.c: Fix off-by-one error when using `-s`.,
G. Branden Robinson <=