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

Issue 11232058: Fix Windows build. (Closed)

Created:
8 years, 2 months ago by Yang
Modified:
8 years, 2 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Patch Set 1 #

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

Messages

Total messages: 3 (0 generated)
Yang
8 years, 2 months ago (2012-10-23 09:20:57 UTC) #1
Michael Starzinger
LGTM (with a comment). https://chromiumcodereview.appspot.com/11232058/diff/1/src/json-stringifier.h File src/json-stringifier.h (right): https://chromiumcodereview.appspot.com/11232058/diff/1/src/json-stringifier.h#newcode576 src/json-stringifier.h:576: ASSERT(sizeof(*dest) >= sizeof(*src)); Could we ...
8 years, 2 months ago (2012-10-23 09:36:07 UTC) #2
Yang
8 years, 2 months ago (2012-10-23 09:39:35 UTC) #3
https://chromiumcodereview.appspot.com/11232058/diff/1/src/json-stringifier.h
File src/json-stringifier.h (right):

https://chromiumcodereview.appspot.com/11232058/diff/1/src/json-stringifier.h...
src/json-stringifier.h:576: ASSERT(sizeof(*dest) >= sizeof(*src));
On 2012/10/23 09:36:07, Michael Starzinger wrote:
> Could we turn that into a STATIC_ASSERT or does sizeof() not work for
> STATIC_ASSERTs?

As discussed offline, the <uc16, char> version is compiled, but must not be
called (the compiler doesn't understand the logic behind this, so it compiles
all <{char,uc16}, {char,uc16}> versions. So a STATIC_ASSERT would fail here.

Powered by Google App Engine
This is Rietveld 408576698