From e0a5f5fd3ffdded1a6ef2af1752609b4487efd4f Mon Sep 17 00:00:00 2001 From: Michael Bradshaw Date: Tue, 25 Apr 2017 04:27:17 -0700 Subject: [PATCH] Fix documentation regarding cell_bitmap indexing --- lib/quirc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/quirc.h b/lib/quirc.h index 60f0170..0e7cb94 100644 --- a/lib/quirc.h +++ b/lib/quirc.h @@ -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. */