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

Issue 2706143002: Fix win-clang build (Closed)

Created:
3 years, 10 months ago by shinyak
Modified:
3 years, 10 months ago
Reviewers:
Nico, scottmg
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix win-clang build In base/logging.h, __COUNTER__ is used in IMMEDIATE_CRASH. This value could be larger than 255. clang-cl is complaining that "implicit conversion from 'int' to 'unsigned char' changes value from 256 to 0" when __COUNTER__ reaches 256. To make binary smaller, we cast __COUNTER__ to unsigned char instead of assigning it to int*. TBR=thakis Review-Url: https://codereview.chromium.org/2706143002 Cr-Commit-Position: refs/heads/master@{#451705} Committed: https://chromium.googlesource.com/chromium/src/+/7d988be5bc1966437c64ea465b1144644003472f

Patch Set 1 #

Patch Set 2 : Use static_csat #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M base/logging.h View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
shinyak
3 years, 10 months ago (2017-02-21 02:29:07 UTC) #6
shinyak
Try to fix build broken in https://codereview.chromium.org/2701253005/
3 years, 10 months ago (2017-02-21 02:29:26 UTC) #7
scottmg
On 2017/02/21 02:29:26, shinyak wrote: > Try to fix build broken in https://codereview.chromium.org/2701253005/ Hi, sorry, ...
3 years, 10 months ago (2017-02-21 02:38:38 UTC) #10
shinyak
OK, I'll do cast.
3 years, 10 months ago (2017-02-21 02:41:31 UTC) #11
scottmg
lgtm
3 years, 10 months ago (2017-02-21 02:48:49 UTC) #15
scottmg
Thanks for fixing this!
3 years, 10 months ago (2017-02-21 02:49:07 UTC) #16
shinyak
By the way, when casting __COUNTER__ to unsigned char, someone might be confused since the ...
3 years, 10 months ago (2017-02-21 02:50:13 UTC) #17
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/2706143002/20001
3 years, 10 months ago (2017-02-21 04:25:22 UTC) #22
shinyak
Since this is a buildfix patch, I added TBR=thakis to commit
3 years, 10 months ago (2017-02-21 04:26:20 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 05:08:20 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7d988be5bc1966437c64ea465b11...

Powered by Google App Engine
This is Rietveld 408576698