diff options
author | tsepez <tsepez@chromium.org> | 2016-03-25 15:18:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-25 15:18:36 -0700 |
commit | b5e8f14e3eefc5da995b332788d3203cee204883 (patch) | |
tree | 34fc80504d2034013b18f30df1b0f6f1a94e2d70 /core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp | |
parent | 6d18bd3b8ec82ae3c24a439f5c7925786a0e2d8b (diff) | |
download | pdfium-b5e8f14e3eefc5da995b332788d3203cee204883.tar.xz |
Remove FX_DWORD from core/ and delete definitionchromium/2695chromium/2694chromium/2693chromium/2692
Review URL: https://codereview.chromium.org/1832173003
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp b/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp index afcc17a55e..050b5e6074 100644 --- a/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp +++ b/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp @@ -18,13 +18,13 @@ int CJBig2_HuffmanDecoder::decodeAValue(CJBig2_HuffmanTable* pTable, int nVal = 0; int nBits = 0; while (1) { - FX_DWORD nTmp; + uint32_t nTmp; if (m_pStream->read1Bit(&nTmp) == -1) break; nVal = (nVal << 1) | nTmp; ++nBits; - for (FX_DWORD i = 0; i < pTable->Size(); ++i) { + for (uint32_t i = 0; i < pTable->Size(); ++i) { if (pTable->GetPREFLEN()[i] == nBits && pTable->GetCODES()[i] == nVal) { if (pTable->IsHTOOB() && i == pTable->Size() - 1) return JBIG2_OOB; @@ -32,7 +32,7 @@ int CJBig2_HuffmanDecoder::decodeAValue(CJBig2_HuffmanTable* pTable, if (m_pStream->readNBits(pTable->GetRANGELEN()[i], &nTmp) == -1) return -1; - FX_DWORD offset = pTable->IsHTOOB() ? 3 : 2; + uint32_t offset = pTable->IsHTOOB() ? 3 : 2; if (i == pTable->Size() - offset) *nResult = pTable->GetRANGELOW()[i] - nTmp; else |