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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to