svn commit: r190158 - head/sys/dev/syscons/teken

Ed Schouten ed at FreeBSD.org
Fri Mar 20 07:32:52 PDT 2009


Author: ed
Date: Fri Mar 20 14:32:51 2009
New Revision: 190158
URL: http://svn.freebsd.org/changeset/base/190158

Log:
  Small cleanup to previous commit.
  
  Just use % 8, instead of & 0x7. This makes it easier to understand.

Modified:
  head/sys/dev/syscons/teken/teken_subr.h

Modified: head/sys/dev/syscons/teken/teken_subr.h
==============================================================================
--- head/sys/dev/syscons/teken/teken_subr.h	Fri Mar 20 14:31:08 2009	(r190157)
+++ head/sys/dev/syscons/teken/teken_subr.h	Fri Mar 20 14:32:51 2009	(r190158)
@@ -38,7 +38,7 @@ teken_tab_isset(teken_t *t, unsigned int
 	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);


More information about the svn-src-head mailing list