diff options
Diffstat (limited to 'lpg/libqr/code-layout.c')
-rw-r--r-- | lpg/libqr/code-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lpg/libqr/code-layout.c b/lpg/libqr/code-layout.c index 228758a..09f29a8 100644 --- a/lpg/libqr/code-layout.c +++ b/lpg/libqr/code-layout.c @@ -36,8 +36,8 @@ static int is_data_bit(const struct qr_iterator * i) static void set_pointer(struct qr_iterator * i) { i->mask = 1 << (i->column % CHAR_BIT); - i->p = i->code->modules - + i->code->line_stride * i->row + i->p = i->code->modules->bits + + i->code->modules->stride * i->row + i->column / CHAR_BIT; } |