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

Issue 10784040: Fix Win64 build by adding a static_cast. (Closed)

Created:
8 years, 5 months ago by sanjoy
Modified:
8 years, 5 months ago
Reviewers:
Sven Panne, danno
CC:
v8-dev
Visibility:
Public.

Description

Fix Win64 build by adding a static_cast. BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=12113

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/hydrogen.h View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 3 (0 generated)
sanjoy
8 years, 5 months ago (2012-07-17 16:45:43 UTC) #1
danno
lgtm
8 years, 5 months ago (2012-07-17 16:49:37 UTC) #2
Sven Panne
8 years, 5 months ago (2012-07-18 06:02:21 UTC) #3
http://codereview.chromium.org/10784040/diff/1/src/hydrogen.h
File src/hydrogen.h (right):

http://codereview.chromium.org/10784040/diff/1/src/hydrogen.h#newcode875
src/hydrogen.h:875: return zone->New(static_cast<int>(size));
Again a bit too late, but nevertheless: I think that the right fix is to change
Zone::New to use a size_t. This is the right type and doing it that way would
get rid of this cast and a few others.

Powered by Google App Engine
This is Rietveld 408576698