2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-02 10:20:52 +00:00

change variable name for greater clarity

git-svn-id: svn+q:///qpdf/trunk@668 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
Jay Berkenbilt 2009-03-10 16:25:07 +00:00
parent c9bc8937e5
commit a89d11f59a

View File

@ -198,13 +198,13 @@ Pl_LZWDecoder::handleCode(int code)
next = getFirstChar(code); next = getFirstChar(code);
} }
} }
unsigned int last_idx = 258 + table_size; unsigned int new_idx = 258 + table_size;
if (last_idx == 4096) if (new_idx == 4096)
{ {
throw QEXC::General("LZWDecoder: table full"); throw QEXC::General("LZWDecoder: table full");
} }
addToTable(next); addToTable(next);
unsigned int change_idx = last_idx + code_change_delta; unsigned int change_idx = new_idx + code_change_delta;
if ((change_idx == 511) || if ((change_idx == 511) ||
(change_idx == 1023) || (change_idx == 1023) ||
(change_idx == 2047)) (change_idx == 2047))