From d50321fd3a718d85adc270190807ecc0675a4ec6 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Fri, 20 Mar 2009 14:32:51 +0000 Subject: [PATCH] Small cleanup to previous commit. Just use % 8, instead of & 0x7. This makes it easier to understand. --- sys/dev/syscons/teken/teken_subr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/syscons/teken/teken_subr.h b/sys/dev/syscons/teken/teken_subr.h index 0ad57f5bade..21982e26d59 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);