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

Issue 17047004: Fixed invalid cast on mingw. (Closed)

Created:
7 years, 6 months ago by cjacek
Modified:
7 years, 6 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fixed invalid cast on mingw. Fixes GCC error: SkThread_win.cpp:39:61: error: invalid static_cast from type ‘int32_t {aka int}’ to type ‘const volatile LONG& {aka const volatile long int&}’ Committed: https://code.google.com/p/skia/source/detail?r=9706

Patch Set 1 #

Total comments: 1

Patch Set 2 : New patch #

Total comments: 1

Patch Set 3 : New patch #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/ports/SkThread_win.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
cjacek
7 years, 6 months ago (2013-06-18 10:53:49 UTC) #1
caryclark
When I try this change in a msvn build, I get 2>d:\cygwin\skgit\trunk\src\ports\skthread_win.cpp(39): error C2220: warning ...
7 years, 6 months ago (2013-06-18 11:57:55 UTC) #2
cjacek
Thanks for quick review! I couldn't figure out how to use 'Try more bots', maybe ...
7 years, 6 months ago (2013-06-19 14:08:12 UTC) #3
caryclark
https://codereview.chromium.org/17047004/diff/5001/src/ports/SkThread_win.cpp File src/ports/SkThread_win.cpp (right): https://codereview.chromium.org/17047004/diff/5001/src/ports/SkThread_win.cpp#newcode39 src/ports/SkThread_win.cpp:39: volatile LONG value = *addr; This change isn't equivalent. ...
7 years, 6 months ago (2013-06-19 14:23:07 UTC) #4
scroggo
Adding Ben, who originally wrote this function.
7 years, 6 months ago (2013-06-19 14:36:34 UTC) #5
cjacek
On 2013/06/19 14:23:07, caryclark wrote: > This change isn't equivalent. This makes the L-value volatile, ...
7 years, 6 months ago (2013-06-20 11:02:47 UTC) #6
bungeman-skia
On 2013/06/20 11:02:47, cjacek wrote: > On 2013/06/19 14:23:07, caryclark wrote: > > This change ...
7 years, 6 months ago (2013-06-20 14:30:59 UTC) #7
cjacek
On 2013/06/20 14:30:59, bungeman1 wrote: > you compiling 32bit or 64bit? I don't have a ...
7 years, 6 months ago (2013-06-20 14:40:40 UTC) #8
bungeman-skia
Since I don't have a mingw setup, please verify that Patch Set 4 works for ...
7 years, 6 months ago (2013-06-20 16:54:14 UTC) #9
cjacek
On 2013/06/20 16:54:14, bungeman1 wrote: > Since I don't have a mingw setup, please verify ...
7 years, 6 months ago (2013-06-20 17:13:30 UTC) #10
bungeman-skia
7 years, 6 months ago (2013-06-20 17:54:29 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 manually as r9706 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698