aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-03-20 14:32:51 +0000
committerEd Schouten <ed@FreeBSD.org>2009-03-20 14:32:51 +0000
commitd50321fd3a718d85adc270190807ecc0675a4ec6 (patch)
treee2807d8aa35e64c7701172e2d5ef33d95a227bc9 /sys/dev/syscons
parent3e1720f5e038898ce9e03c854a08aca100b0908c (diff)
Notes
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/teken/teken_subr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/syscons/teken/teken_subr.h b/sys/dev/syscons/teken/teken_subr.h
index 0ad57f5bade42..21982e26d592a 100644
--- a/sys/dev/syscons/teken/teken_subr.h
+++ b/sys/dev/syscons/teken/teken_subr.h
@@ -38,7 +38,7 @@ teken_tab_isset(teken_t *t, unsigned int col)
unsigned int b, o;
if (col >= T_NUMCOL)
- return ((col & 0x7) == 0);
+ return ((col % 8) == 0);
b = col / (sizeof(unsigned int) * 8);
o = col % (sizeof(unsigned int) * 8);