Summary: | Fix Debug Build Error in Webcore module | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Shivakumar J M <shiva.jm> | ||||||
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | changseok, commit-queue, gyuyoung.kim, ossy, svillar | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Shivakumar J M
2015-01-12 23:00:24 PST
Created attachment 244498 [details]
Patch
Fixed 32 bit debug build error by using proper format specifier.
Fixed 32 bit debug build error by using proper format specifier in LOG(), we can also use type cast to static_cast<long int> to fix the error. Comment on attachment 244498 [details]
Patch
LGTM, r=me
Comment on attachment 244498 [details]
Patch
no, it won't be good, because it would break 64 bit build.
size_t is unsigned int on 32 bit and long unsigned int on 64 bit. So it should be casted to long unsigned int unconditionally. Created attachment 244502 [details]
Patch-Updated-Review1
Updated the patch to use %lu and apply static_cast<unsigned long> for printing logs.
Comment on attachment 244502 [details] Patch-Updated-Review1 Clearing flags on attachment: 244502 Committed r178349: <http://trac.webkit.org/changeset/178349> All reviewed patches have been landed. Closing bug. Thanks for the fix. =) I didn't think 32-bit machine support. |