diff options
author | Leo Howell <leo@lwh.jp> | 2009-10-08 14:38:37 +0900 |
---|---|---|
committer | Leo Howell <leo@lwh.jp> | 2009-10-08 14:38:37 +0900 |
commit | 62e8a6f2ad89be06c7e649c0fc4c564ecad2d070 (patch) | |
tree | a870eb56ba9c02e5807d3ce3d556bca98c1f2e8c /lpg/libqr/data-parse.c | |
parent | ad59de83b7f82cb812d23ac2bb948ac32fe0ac71 (diff) | |
download | pdf-simple-sign-62e8a6f2ad89be06c7e649c0fc4c564ecad2d070.tar.gz pdf-simple-sign-62e8a6f2ad89be06c7e649c0fc4c564ecad2d070.tar.xz pdf-simple-sign-62e8a6f2ad89be06c7e649c0fc4c564ecad2d070.zip |
code format --> version
Diffstat (limited to 'lpg/libqr/data-parse.c')
-rw-r--r-- | lpg/libqr/data-parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lpg/libqr/data-parse.c b/lpg/libqr/data-parse.c index d497bdf..4868cd2 100644 --- a/lpg/libqr/data-parse.c +++ b/lpg/libqr/data-parse.c @@ -33,7 +33,7 @@ static enum qr_data_type parse_numeric(const struct qr_data * data, stream = data->bits; buffer = 0; - field_len = get_size_field_length(data->format, QR_DATA_NUMERIC); + field_len = get_size_field_length(data->version, QR_DATA_NUMERIC); if (qr_bitstream_remaining(stream) < field_len) goto invalid; @@ -93,7 +93,7 @@ static enum qr_data_type parse_alpha(const struct qr_data * data, stream = data->bits; buffer = 0; - field_len = get_size_field_length(data->format, QR_DATA_ALPHA); + field_len = get_size_field_length(data->version, QR_DATA_ALPHA); if (qr_bitstream_remaining(stream) < field_len) goto invalid; @@ -150,7 +150,7 @@ static enum qr_data_type parse_8bit(const struct qr_data * data, stream = data->bits; - field_len = get_size_field_length(data->format, QR_DATA_8BIT); + field_len = get_size_field_length(data->version, QR_DATA_8BIT); if (qr_bitstream_remaining(stream) < field_len) return QR_DATA_INVALID; @@ -201,7 +201,7 @@ int qr_get_data_length(const struct qr_data * data) case QR_DATA_ALPHA: case QR_DATA_8BIT: case QR_DATA_KANJI: - field_len = get_size_field_length(data->format, type); + field_len = get_size_field_length(data->version, type); break; default: /* unsupported / invalid */ |