Commit a89d11f59a3206c0aaae62c565b2f6abc0551231
1 parent
c9bc8937
change variable name for greater clarity
git-svn-id: svn+q:///qpdf/trunk@668 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
1 changed file
with
3 additions
and
3 deletions
libqpdf/Pl_LZWDecoder.cc
| @@ -198,13 +198,13 @@ Pl_LZWDecoder::handleCode(int code) | @@ -198,13 +198,13 @@ Pl_LZWDecoder::handleCode(int code) | ||
| 198 | next = getFirstChar(code); | 198 | next = getFirstChar(code); |
| 199 | } | 199 | } |
| 200 | } | 200 | } |
| 201 | - unsigned int last_idx = 258 + table_size; | ||
| 202 | - if (last_idx == 4096) | 201 | + unsigned int new_idx = 258 + table_size; |
| 202 | + if (new_idx == 4096) | ||
| 203 | { | 203 | { |
| 204 | throw QEXC::General("LZWDecoder: table full"); | 204 | throw QEXC::General("LZWDecoder: table full"); |
| 205 | } | 205 | } |
| 206 | addToTable(next); | 206 | addToTable(next); |
| 207 | - unsigned int change_idx = last_idx + code_change_delta; | 207 | + unsigned int change_idx = new_idx + code_change_delta; |
| 208 | if ((change_idx == 511) || | 208 | if ((change_idx == 511) || |
| 209 | (change_idx == 1023) || | 209 | (change_idx == 1023) || |
| 210 | (change_idx == 2047)) | 210 | (change_idx == 2047)) |