Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(84)

Issue 429002: Clean up warnings about narrowing conversion (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Jess
Modified:
13 years ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Clean up warnings about narrowing conversion

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use size_t directly instead of unsigned long #

Total comments: 3

Patch Set 3 : Using correct casting and returning to using address of -1 #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/common/memory_range_unittest.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 10
Jess
Please review these changes. These warnings are being treated as errors for some clients.
13 years ago #1
Ben Chan
http://breakpad.appspot.com/429002/diff/1/src/common/memory_range_unittest.cc File src/common/memory_range_unittest.cc (right): http://breakpad.appspot.com/429002/diff/1/src/common/memory_range_unittest.cc#newcode58 src/common/memory_range_unittest.cc:58: { false, kBufferSize, ~0UL }, would be it safer ...
13 years ago #2
Jess
Excellent point. Please see patch set 2 for update. On 2012/08/07 20:09:24, Ben Chan wrote: ...
13 years ago #3
Mark Mentovai
http://breakpad.appspot.com/429002/diff/4001/src/common/memory_range_unittest.cc File src/common/memory_range_unittest.cc (right): http://breakpad.appspot.com/429002/diff/4001/src/common/memory_range_unittest.cc#newcode58 src/common/memory_range_unittest.cc:58: { false, kBufferSize, ~(size_t)0 }, Use cplusplus<style>(casts), never (c_style)casts. ...
13 years ago #4
Mark Mentovai
http://breakpad.appspot.com/429002/diff/4001/src/common/memory_range_unittest.cc File src/common/memory_range_unittest.cc (right): http://breakpad.appspot.com/429002/diff/4001/src/common/memory_range_unittest.cc#newcode58 src/common/memory_range_unittest.cc:58: { false, kBufferSize, ~(size_t)0 }, Isn’t -1 more “what ...
13 years ago #5
Ben Chan
http://breakpad.appspot.com/429002/diff/4001/src/common/memory_range_unittest.cc File src/common/memory_range_unittest.cc (right): http://breakpad.appspot.com/429002/diff/4001/src/common/memory_range_unittest.cc#newcode58 src/common/memory_range_unittest.cc:58: { false, kBufferSize, ~(size_t)0 }, On 2012/08/07 20:25:46, Mark ...
13 years ago #6
Jess
I assumed a change proposed to fix a cross tool Werror actually looked at the ...
13 years ago #7
Mark Mentovai
LGTM
13 years ago #8
Ben Chan
On 2012/08/07 20:32:24, Jess wrote: > I assumed a change proposed to fix a cross ...
13 years ago #9
Jess
13 years ago #10
Checked in at r1006.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted