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

Issue 10785002: Fix ARM build for gcc 4.2 on mac (Closed)

Created:
8 years, 5 months ago by danno
Modified:
8 years, 5 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Fix ARM build for gcc 4.2 on mac

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/arm/simulator-arm.cc View 1 chunk +2 lines, -2 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
danno
PTAL
8 years, 5 months ago (2012-07-16 14:57:43 UTC) #1
Jakob Kummerow
8 years, 5 months ago (2012-07-16 15:06:06 UTC) #2
http://codereview.chromium.org/10785002/diff/1/src/arm/simulator-arm.cc
File src/arm/simulator-arm.cc (right):

http://codereview.chromium.org/10785002/diff/1/src/arm/simulator-arm.cc#newco...
src/arm/simulator-arm.cc:3055: : static_cast<int>(val);
I don't think this change is correct, as it effectively ignores the
unsigned_integer bool. I think in the unsigned case you need to cast twice:
double -> uint32_t -> int, as in:

int temp = unsigned_integer
    ? static_cast<int>(static_cast<uint32_t>(val))
    : static_cast<int>(val);

Powered by Google App Engine
This is Rietveld 408576698