Merge to XFA: Fix a bunch of sign mismatch warnings.
authorLei Zhang <thestig@chromium.org>
Fri, 16 Oct 2015 23:22:37 +0000 (16:22 -0700)
committerLei Zhang <thestig@chromium.org>
Fri, 16 Oct 2015 23:22:37 +0000 (16:22 -0700)
commitc40ccaff017691b7d31e0597863bfb954aebd739
tree4f5f09c672393e130037826256ab182e2d2ae7f5
parenta725bc9a3525256976c112b2b5a429a119cf9b69
Merge to XFA: Fix a bunch of sign mismatch warnings.

Also remove some gotos and move code into an anonymous namespace.

And then do the partial revert to avoid size_t going negative.

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1356373003 .
Review URL: https://codereview.chromium.org/1400723002 .

(cherry picked from commit d03ba8d1a5928e8f3f6bd7da063b53b0bc40abfd)
(cherry picked from commit a398ca611d1925182ff6a4e8b2b43c277c364dc0)

Review URL: https://codereview.chromium.org/1406373002 .
14 files changed:
core/include/fpdfapi/fpdf_resource.h
core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp
core/src/fpdfapi/fpdf_font/font_int.h
core/src/fpdfapi/fpdf_font/fpdf_font.cpp
core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp
core/src/fxcodec/codec/fx_codec_jpeg.cpp
core/src/fxcodec/codec/fx_codec_jpx_opj.cpp
core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp
core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h
core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp
core/src/fxcodec/jbig2/JBig2_HuffmanTable.h