diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-03-10 17:25:07 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-03-10 17:25:07 +0100 |
commit | a89d11f59a3206c0aaae62c565b2f6abc0551231 (patch) | |
tree | c9b7e493b376a078c6d2838475eb0848ffd988c6 /libqpdf/Pl_LZWDecoder.cc | |
parent | c9bc8937e5b0d4921ed1e220536d8cf51c4faa71 (diff) | |
download | qpdf-a89d11f59a3206c0aaae62c565b2f6abc0551231.tar.zst |
change variable name for greater clarity
git-svn-id: svn+q:///qpdf/trunk@668 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/Pl_LZWDecoder.cc')
-rw-r--r-- | libqpdf/Pl_LZWDecoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libqpdf/Pl_LZWDecoder.cc b/libqpdf/Pl_LZWDecoder.cc index 25cfdc9a..f4bf3012 100644 --- a/libqpdf/Pl_LZWDecoder.cc +++ b/libqpdf/Pl_LZWDecoder.cc @@ -198,13 +198,13 @@ Pl_LZWDecoder::handleCode(int code) next = getFirstChar(code); } } - unsigned int last_idx = 258 + table_size; - if (last_idx == 4096) + unsigned int new_idx = 258 + table_size; + if (new_idx == 4096) { throw QEXC::General("LZWDecoder: table full"); } addToTable(next); - unsigned int change_idx = last_idx + code_change_delta; + unsigned int change_idx = new_idx + code_change_delta; if ((change_idx == 511) || (change_idx == 1023) || (change_idx == 2047)) |