Bug 94122 - win64 compile error fix for BinaryPropertyList.cpp
Summary: win64 compile error fix for BinaryPropertyList.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-15 10:33 PDT by Alex Christensen
Modified: 2012-08-22 15:01 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.20 KB, patch)
2012-08-15 10:40 PDT, Alex Christensen
bfulgham: review-
bfulgham: commit-queue-
Details | Formatted Diff | Diff
patch (2.23 KB, patch)
2012-08-16 11:20 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Christensen 2012-08-15 10:33:32 PDT
BinaryPropertyList.cpp has calls to appendByte which cause compile errors when compiling with MSVC for a 64-bit machine.  Since all the overloads of appendByte do the same thing which casts to an unsigned char anyway (see lines 392-414 of the same file), casting them before the call should not change performance (especially since the functions are inline) but it will allow compiling for win64.

https://github.com/achristensen07/webkit64prep

patch coming soon
Comment 1 Alex Christensen 2012-08-15 10:40:07 PDT
Created attachment 158589 [details]
Patch
Comment 2 Brent Fulgham 2012-08-15 20:47:05 PDT
Comment on attachment 158589 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=158589&action=review

I think the intent of this change is good, but please switch to the more explicit C++-style cast; I think this is just a static_cast<>.

> Source/WebCore/platform/cf/BinaryPropertyList.cpp:700
> +            appendByte((unsigned char)(asciiStringMarkerByte | length));

We use C++-style casts in the Coding Guideline:

static_cast<unsigned char>(asciiStringMarkerByte | length)

> Source/WebCore/platform/cf/BinaryPropertyList.cpp:709
> +            appendByte((unsigned char)(unicodeStringMarkerByte | length));

Ditto.

> Source/WebCore/platform/cf/BinaryPropertyList.cpp:726
> +        appendByte((unsigned char)(asciiStringMarkerByte | length));

Ditto
Comment 3 Alex Christensen 2012-08-16 11:20:21 PDT
Created attachment 158855 [details]
patch
Comment 4 WebKit Review Bot 2012-08-22 15:01:31 PDT
Comment on attachment 158855 [details]
patch

Clearing flags on attachment: 158855

Committed r126357: <http://trac.webkit.org/changeset/126357>
Comment 5 WebKit Review Bot 2012-08-22 15:01:34 PDT
All reviewed patches have been landed.  Closing bug.