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

Issue 2412983002: Convert from int to float values. (Closed)

Created:
4 years, 2 months ago by dsinclair
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Convert from int to float values. The CPDF_Page::GetDisplayMatrix expects to set float values into the |display_matrix| but all of the input values are currently int. It is possible to overflow the int values, so this CL changes the variables to be int which closer reflects what they're being used for. BUG=chromium:652038 Committed: https://pdfium.googlesource.com/pdfium/+/798e18f5e5cfb672c7f3186f6358b84c5ff7785b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review feedback #

Patch Set 3 : Win fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M core/fpdfapi/page/cpdf_page.cpp View 2 2 chunks +9 lines, -10 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
dsinclair
PTAL.
4 years, 2 months ago (2016-10-12 18:50:43 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/2412983002/diff/1/core/fpdfapi/page/cpdf_page.cpp File core/fpdfapi/page/cpdf_page.cpp (right): https://codereview.chromium.org/2412983002/diff/1/core/fpdfapi/page/cpdf_page.cpp#newcode129 core/fpdfapi/page/cpdf_page.cpp:129: float x0 = 0; No need to initialize?
4 years, 2 months ago (2016-10-12 18:59:53 UTC) #3
dsinclair
https://codereview.chromium.org/2412983002/diff/1/core/fpdfapi/page/cpdf_page.cpp File core/fpdfapi/page/cpdf_page.cpp (right): https://codereview.chromium.org/2412983002/diff/1/core/fpdfapi/page/cpdf_page.cpp#newcode129 core/fpdfapi/page/cpdf_page.cpp:129: float x0 = 0; On 2016/10/12 18:59:53, Lei Zhang ...
4 years, 2 months ago (2016-10-12 19:03:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2412983002/20001
4 years, 2 months ago (2016-10-12 19:03:33 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_no_v8/builds/2418)
4 years, 2 months ago (2016-10-12 19:08:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2412983002/40001
4 years, 2 months ago (2016-10-12 19:09:26 UTC) #12
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 20:05:42 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/798e18f5e5cfb672c7f3186f6358b84c5ff7...

Powered by Google App Engine
This is Rietveld 408576698