Fix documentation regarding cell_bitmap indexing

This commit is contained in:
Michael Bradshaw 2017-04-25 04:27:17 -07:00 committed by GitHub
parent 84eccbf077
commit e0a5f5fd3f

View file

@ -121,7 +121,7 @@ struct quirc_code {
* is a bitmask giving the actual values of cells. If the cell
* at (x, y) is black, then the following bit is set:
*
* cell_bitmap[i << 3] & (1 << (i & 7))
* cell_bitmap[i >> 3] & (1 << (i & 7))
*
* where i = (y * size) + x.
*/