aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/code-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/code-parse.c')
-rw-r--r--lpg/libqr/code-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lpg/libqr/code-parse.c b/lpg/libqr/code-parse.c
index d4a2538..3fca4b2 100644
--- a/lpg/libqr/code-parse.c
+++ b/lpg/libqr/code-parse.c
@@ -111,7 +111,7 @@ static int read_bits(const struct qr_code * code,
const size_t total_words = total_bits / QR_WORD_BITS;
struct qr_bitstream * raw_bits;
struct qr_iterator * layout;
- int w;
+ size_t w;
int ret = -1;
raw_bits = qr_bitstream_create();
@@ -292,7 +292,7 @@ cleanup:
return status;
}
-int qr_decode_format(unsigned bits, enum qr_ec_level * ec, int * mask)
+int qr_decode_format(unsigned long bits, enum qr_ec_level * ec, int * mask)
{
bits ^= QR_FORMAT_MASK;