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

Issue 1060383002: Make one-bit bit fields unsigned. (Closed)

Created:
5 years, 8 months ago by brucedawson
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make one-bit bit fields unsigned. VC++ 2015 gives the following warning when compiling jsoncpp: json_value.cpp(480): warning C4463: overflow; assigning 1 to bit-field that can only hold values from -1 to 0 This warning is correct. A signed one-bit value can only hold 0 and -1. This is true on gcc and clang, but only VC++ 2015 warns about it. The code works because the stored value is never compared against 1 or printed, but the current code is likely to cause surprises or bugs in the future and should be fixed. R=cpu@chromium.org BUG=440500 Committed: https://crrev.com/707c3acd012287f3b4897bedaf57c60fbd4044bd Cr-Commit-Position: refs/heads/master@{#325330}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Adding patch file for changes to value.h #

Patch Set 3 : Update patch file #

Patch Set 4 : Updating README.chromium and putting all changes in patch file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -3 lines) Patch
M third_party/jsoncpp/README.chromium View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/jsoncpp/overrides/include/json/value.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
A third_party/jsoncpp/patches/value.h.diff View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
brucedawson
5 years, 8 months ago (2015-04-07 18:21:35 UTC) #2
brucedawson
Changing reviewer since mallinath is tagged as (Gone from Chromium). Consider removing them from jsoncpp\OWNERS ...
5 years, 8 months ago (2015-04-07 18:38:10 UTC) #4
Mallinath (Gone from Chromium)
On 2015/04/07 18:38:10, brucedawson wrote: > Changing reviewer since mallinath is tagged as (Gone from ...
5 years, 8 months ago (2015-04-07 19:49:41 UTC) #5
Ronghua Wu (Left Chromium)
Sorry, I left chrome as well. Can you find someone else from the owner file?
5 years, 8 months ago (2015-04-07 20:14:38 UTC) #6
brucedawson
Third try at a review. Both people in the third_party\jsoncpp\OWNERS file have left Chromium. Can ...
5 years, 8 months ago (2015-04-07 20:28:11 UTC) #8
scottmg
https://codereview.chromium.org/1060383002/diff/1/third_party/jsoncpp/overrides/include/json/value.h File third_party/jsoncpp/overrides/include/json/value.h (right): https://codereview.chromium.org/1060383002/diff/1/third_party/jsoncpp/overrides/include/json/value.h#newcode501 third_party/jsoncpp/overrides/include/json/value.h:501: unsigned allocated_ : 1; can you make these `unsigned ...
5 years, 8 months ago (2015-04-13 22:45:51 UTC) #10
brucedawson
Patch file added, and changed from 'unsigned' to 'unsigned int' for consistency (suggested by Scott)
5 years, 8 months ago (2015-04-14 23:40:46 UTC) #11
brucedawson
We're working on getting Chrome to build with VS 2015 (release candidate).
5 years, 8 months ago (2015-04-14 23:52:34 UTC) #13
Sam Clegg
Can you update the README.chromium? If your going to add a patch it shouldn't it ...
5 years, 8 months ago (2015-04-15 00:01:36 UTC) #14
brucedawson
I updated the patch file and README.chromium. Upstreaming this would be great. Signed bit fields ...
5 years, 8 months ago (2015-04-15 00:18:59 UTC) #15
brucedawson
PTAL?
5 years, 8 months ago (2015-04-15 18:19:12 UTC) #16
Sam Clegg
lgtm
5 years, 8 months ago (2015-04-15 18:31:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060383002/60001
5 years, 8 months ago (2015-04-15 20:51:04 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-15 22:43:15 UTC) #20
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/707c3acd012287f3b4897bedaf57c60fbd4044bd Cr-Commit-Position: refs/heads/master@{#325330}
5 years, 8 months ago (2015-04-15 22:44:00 UTC) #21
lilianareyes171755
5 years, 7 months ago (2015-05-18 08:18:09 UTC) #23
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698