Summary: | Fix use of long long in FractionalLayoutUnit::setRawValue | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Emil A Eklund <eae> | ||||
Component: | Platform | Assignee: | Emil A Eklund <eae> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | aroben, eric, leviw, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 76571 | ||||||
Attachments: |
|
Description
Emil A Eklund
2012-02-16 13:22:32 PST
Created attachment 127434 [details]
Patch
Comment on attachment 127434 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127434&action=review The rest looks fine. > Source/WebCore/platform/FractionalLayoutUnit.h:122 > + return value < static_cast<unsigned>(std::numeric_limits<int>::max()) / kFixedPointDenominator; Why is this necessary? Comment on attachment 127434 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127434&action=review >> Source/WebCore/platform/FractionalLayoutUnit.h:122 >> + return value < static_cast<unsigned>(std::numeric_limits<int>::max()) / kFixedPointDenominator; > > Why is this necessary? Since value here is unsigned, you'll get a type warning when comparing them if you don't cast the int. Comment on attachment 127434 [details]
Patch
OK.
Comment on attachment 127434 [details] Patch Clearing flags on attachment: 127434 Committed r108006: <http://trac.webkit.org/changeset/108006> All reviewed patches have been landed. Closing bug. |