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

Issue 2118383006: Fix "conversion of size_t to unsigned int" warning (Closed)

Created:
4 years, 5 months ago by Rob Percival
Modified:
4 years, 5 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix "conversion of size_t to unsigned int" warning On Windows 64-bit builds, sizeof(size_t) != sizeof(unsigned): net\dns\record_rdata.h(201): warning C4267: 'return': conversion from 'size_t' to 'unsigned int', possible loss of data BUG=612439 Committed: https://crrev.com/8c82b175a6fa0cc4edd1c6647fd77a7f44525a65 Cr-Commit-Position: refs/heads/master@{#404146}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Re-inline NsecRecordRdata::bitmap_length() and remove DCHECK #

Total comments: 2

Patch Set 3 : Addresses comments from Ryan #

Total comments: 3

Patch Set 4 : Addresses final comments from Ryan #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -24 lines) Patch
M net/dns/record_rdata.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M net/dns/record_rdata_unittest.cc View 1 2 3 16 chunks +50 lines, -23 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
Rob Percival
PTAL - fixes Windows-breaking compilation warning.
4 years, 5 months ago (2016-07-05 18:03:01 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2118383006/1
4 years, 5 months ago (2016-07-05 18:03:26 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/226277)
4 years, 5 months ago (2016-07-05 18:16:36 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2118383006/20001
4 years, 5 months ago (2016-07-05 23:55:32 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-06 01:31:36 UTC) #11
Rob Percival
4 years, 5 months ago (2016-07-06 15:06:30 UTC) #13
Ryan Sleevi
To motivations: Why are you seeing this? We suppress the warnings in //net https://cs.chromium.org/chromium/src/net/net.gyp?rcl=0&l=359 https://codereview.chromium.org/2118383006/diff/20001/net/dns/record_rdata.cc ...
4 years, 5 months ago (2016-07-06 15:28:58 UTC) #15
Rob Percival
On 2016/07/06 15:28:58, Ryan Sleevi wrote: > To motivations: Why are you seeing this? We ...
4 years, 5 months ago (2016-07-06 15:56:23 UTC) #16
Rob Percival
On 2016/07/06 15:56:23, Rob Percival wrote: > On 2016/07/06 15:28:58, Ryan Sleevi wrote: > > ...
4 years, 5 months ago (2016-07-06 16:17:30 UTC) #17
Ryan Sleevi
I'm fine with Option C, mod nits. My big problem with the DCHECK isn't that ...
4 years, 5 months ago (2016-07-06 16:29:03 UTC) #18
Rob Percival
On 2016/07/06 16:29:03, Ryan Sleevi wrote: > I'm fine with Option C, mod nits. > ...
4 years, 5 months ago (2016-07-06 17:14:08 UTC) #19
Rob Percival
https://codereview.chromium.org/2118383006/diff/40001/net/dns/record_rdata.h File net/dns/record_rdata.h (right): https://codereview.chromium.org/2118383006/diff/40001/net/dns/record_rdata.h#newcode202 net/dns/record_rdata.h:202: // bytes long (this is verified by Create()). On ...
4 years, 5 months ago (2016-07-06 17:14:44 UTC) #20
Rob Percival
4 years, 5 months ago (2016-07-06 17:14:45 UTC) #21
Ryan Sleevi
LGTM % nits https://codereview.chromium.org/2118383006/diff/60001/net/dns/record_rdata_unittest.cc File net/dns/record_rdata_unittest.cc (right): https://codereview.chromium.org/2118383006/diff/60001/net/dns/record_rdata_unittest.cc#newcode200 net/dns/record_rdata_unittest.cc:200: std::unique_ptr<NsecRecordRdata> record_obj; STYLE: Keep this scoped ...
4 years, 5 months ago (2016-07-06 17:48:26 UTC) #22
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/2118383006/80001
4 years, 5 months ago (2016-07-07 11:48:06 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 5 months ago (2016-07-07 13:31:09 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 13:33:14 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8c82b175a6fa0cc4edd1c6647fd77a7f44525a65
Cr-Commit-Position: refs/heads/master@{#404146}

Powered by Google App Engine
This is Rietveld 408576698