Merge pull request #29 from mjbshaw/patch-1

Fix documentation regarding cell_bitmap indexing
This commit is contained in:
Daniel Beer 2017-04-26 10:28:48 +12:00 committed by GitHub
commit 26a182814d

View file

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