aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/data-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/data-create.c')
-rw-r--r--lpg/libqr/data-create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lpg/libqr/data-create.c b/lpg/libqr/data-create.c
index 9d6c384..6437bc1 100644
--- a/lpg/libqr/data-create.c
+++ b/lpg/libqr/data-create.c
@@ -175,7 +175,7 @@ static int calc_min_version(enum qr_data_type type,
for (version = 1; version <= 40; ++version) {
if (4 + dbits + qr_data_size_field_length(version, type)
- < 8 * QR_DATA_WORD_COUNT[version - 1][ec ^ 0x1])
+ < 8 * (size_t) QR_DATA_WORD_COUNT[version - 1][ec ^ 0x1])
return version;
}