aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/code-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/code-common.c')
-rw-r--r--lpg/libqr/code-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lpg/libqr/code-common.c b/lpg/libqr/code-common.c
index bc6621a..a0b8fcc 100644
--- a/lpg/libqr/code-common.c
+++ b/lpg/libqr/code-common.c
@@ -47,7 +47,7 @@ struct qr_bitmap * qr_mask_apply(const struct qr_bitmap * orig,
struct qr_bitmap * bmp;
int i, j;
- if (mask & ~0x7)
+ if (mask > 7)
return 0;
bmp = qr_bitmap_clone(orig);