aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/gdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/test/gdc.c')
-rw-r--r--contrib/ncurses/test/gdc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/ncurses/test/gdc.c b/contrib/ncurses/test/gdc.c
index df9a0c3fdf5c..c2158745c1a1 100644
--- a/contrib/ncurses/test/gdc.c
+++ b/contrib/ncurses/test/gdc.c
@@ -6,7 +6,7 @@
* modified 10-18-89 for curses (jrl)
* 10-18-89 added signal handling
*
- * $Id: gdc.c,v 1.15 2000/09/02 18:40:39 tom Exp $
+ * $Id: gdc.c,v 1.16 2001/02/24 23:27:22 tom Exp $
*/
#include <test.priv.h>
@@ -97,7 +97,7 @@ set(int t, int n)
m = 7 << n;
for (i = 0; i < 5; i++) {
- next[i] |= ((disp[t] >> (4 - i) * 3) & 07) << n;
+ next[i] |= ((disp[t] >> ((4 - i) * 3)) & 07) << n;
mask |= (next[i] ^ older[i]) & m;
}
if (mask & m)
@@ -306,6 +306,7 @@ main(int argc, char *argv[])
fprintf(stderr, "gdc terminated by signal %d\n", sigtermed);
return EXIT_FAILURE;
}
+ /* FALLTHRU */
default:
continue;
}