Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Issue 1841643002: Code change to avoid signed/unsigned mismatch warnings (Closed)

Created:
4 years, 8 months ago by Wei Li
Modified:
4 years, 8 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Code change to avoid signed/unsigned mismatch warnings. This makes pdfium code on Linux and Mac sign-compare warning free. The warning flag will be re-enabled after checking on windows clang build. BUG=pdfium:29 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/05d53f0355e9889c43bfa436e985d5643f249d99

Patch Set 1 : #

Patch Set 2 : change comments #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -308 lines) Patch
M core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_font/cpdf_cidfont.cpp View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_font/font_int.h View 2 chunks +6 lines, -6 lines 0 comments Download
M core/fpdfapi/fpdf_font/fpdf_font.cpp View 3 chunks +9 lines, -7 lines 0 comments Download
M core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp View 1 chunk +9 lines, -9 lines 0 comments Download
M core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_colorstate.h View 1 chunk +9 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_colorstate.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_func.cpp View 1 2 15 chunks +58 lines, -86 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_page/pageint.h View 4 chunks +7 lines, -7 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_array.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp View 1 2 4 chunks +7 lines, -6 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp View 2 chunks +5 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_array.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_object.h View 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp View 4 chunks +8 lines, -13 lines 0 comments Download
M core/fpdfdoc/doc_formfield.cpp View 1 2 7 chunks +34 lines, -60 lines 0 comments Download
M core/fpdftext/fpdf_text_int_unittest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/fxcodec/codec/fx_codec_jpx_unittest.cpp View 11 chunks +12 lines, -12 lines 0 comments Download
M core/fxcrt/fx_basic_gcc_unittest.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M core/fxcrt/include/fx_string.h View 1 chunk +3 lines, -1 line 0 comments Download
M core/fxge/ge/fx_ge_text.cpp View 1 4 chunks +18 lines, -18 lines 0 comments Download
M core/include/fpdfdoc/fpdf_doc.h View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdfdoc_embeddertest.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M fpdfsdk/fpdfsave_embeddertest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/fpdftext_embeddertest.cpp View 4 chunks +18 lines, -19 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/fpdfview_embeddertest.cpp View 2 chunks +12 lines, -6 lines 0 comments Download
M fpdfsdk/javascript/Field.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/PublicMethods.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (6 generated)
Wei Li
PTAL, thanks
4 years, 8 months ago (2016-03-29 19:46:33 UTC) #5
Tom Sepez
lgtm https://codereview.chromium.org/1841643002/diff/60001/fpdfsdk/fpdfview.cpp File fpdfsdk/fpdfview.cpp (right): https://codereview.chromium.org/1841643002/diff/60001/fpdfsdk/fpdfview.cpp#newcode198 fpdfsdk/fpdfview.cpp:198: newPos.ValueOrDie() > static_cast<FX_FILESIZE>(m_FileAccess.m_FileLen)) { m_FileLen probably should remaing ...
4 years, 8 months ago (2016-03-29 20:29:01 UTC) #6
Wei Li
thanks https://codereview.chromium.org/1841643002/diff/60001/fpdfsdk/fpdfview.cpp File fpdfsdk/fpdfview.cpp (right): https://codereview.chromium.org/1841643002/diff/60001/fpdfsdk/fpdfview.cpp#newcode198 fpdfsdk/fpdfview.cpp:198: newPos.ValueOrDie() > static_cast<FX_FILESIZE>(m_FileAccess.m_FileLen)) { On 2016/03/29 20:29:01, Tom ...
4 years, 8 months ago (2016-03-29 22:21:00 UTC) #7
Tom Sepez
On 2016/03/29 22:21:00, Wei Li wrote: > thanks > > https://codereview.chromium.org/1841643002/diff/60001/fpdfsdk/fpdfview.cpp > File fpdfsdk/fpdfview.cpp (right): ...
4 years, 8 months ago (2016-03-29 23:20:19 UTC) #9
Wei Li
4 years, 8 months ago (2016-03-29 23:42:59 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:80001) manually as
05d53f0355e9889c43bfa436e985d5643f249d99 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698