aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/code-parse.c
diff options
context:
space:
mode:
authorLeo Uino <leo@norisys.jp>2011-07-19 12:04:15 +0900
committerLeo Uino <leo@norisys.jp>2011-07-19 12:04:15 +0900
commitd4abb878df167875bb66d1e0debe853cb6b88b1b (patch)
tree206e5638d866382b66737058593bf483b7e92c06 /lpg/libqr/code-parse.c
parenta3234f7d7e36ad7d1bad6a85b868b05addf40e9b (diff)
downloadpdf-simple-sign-d4abb878df167875bb66d1e0debe853cb6b88b1b.tar.gz
pdf-simple-sign-d4abb878df167875bb66d1e0debe853cb6b88b1b.tar.xz
pdf-simple-sign-d4abb878df167875bb66d1e0debe853cb6b88b1b.zip
Fix some types
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;