From 736f28ab2434e2da1de66ff91b64741483ff9cba Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 25 Mar 2016 14:19:51 -0700 Subject: Remove FX_DWORD from XFA. Review URL: https://codereview.chromium.org/1830323006 --- xfa/fxbarcode/pdf417/BC_PDF417Common.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xfa/fxbarcode/pdf417/BC_PDF417Common.cpp') diff --git a/xfa/fxbarcode/pdf417/BC_PDF417Common.cpp b/xfa/fxbarcode/pdf417/BC_PDF417Common.cpp index 92c641d1bd..b9cac0c678 100644 --- a/xfa/fxbarcode/pdf417/BC_PDF417Common.cpp +++ b/xfa/fxbarcode/pdf417/BC_PDF417Common.cpp @@ -620,22 +620,22 @@ int32_t CBC_PDF417Common::getBitCountSum(CFX_Int32Array& moduleBitCount) { } return bitCountSum; } -int32_t CBC_PDF417Common::getCodeword(FX_DWORD symbol) { - FX_DWORD sym = symbol & 0x3FFFF; +int32_t CBC_PDF417Common::getCodeword(uint32_t symbol) { + uint32_t sym = symbol & 0x3FFFF; int32_t i = findCodewordIndex(sym); if (i == -1) { return -1; } return (CODEWORD_TABLE[i] - 1) % NUMBER_OF_CODEWORDS; } -int32_t CBC_PDF417Common::findCodewordIndex(FX_DWORD symbol) { +int32_t CBC_PDF417Common::findCodewordIndex(uint32_t symbol) { int32_t first = 0; int32_t upto = sizeof(SYMBOL_TABLE) / sizeof(SYMBOL_TABLE[0]); while (first < upto) { - int32_t mid = ((FX_DWORD)(first + upto)) >> 1; - if (symbol < (FX_DWORD)SYMBOL_TABLE[mid]) { + int32_t mid = ((uint32_t)(first + upto)) >> 1; + if (symbol < (uint32_t)SYMBOL_TABLE[mid]) { upto = mid; - } else if (symbol > (FX_DWORD)SYMBOL_TABLE[mid]) { + } else if (symbol > (uint32_t)SYMBOL_TABLE[mid]) { first = mid + 1; } else { return mid; -- cgit v1.2.3