Bug 198540 - Fix 64-bit vs 32-bit mismatch in TileController.cpp
Summary: Fix 64-bit vs 32-bit mismatch in TileController.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Rollin
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-06-04 13:08 PDT by Keith Rollin
Modified: 2019-06-04 17:26 PDT (History)
5 users (show)

See Also:


Attachments
Patch (1.82 KB, patch)
2019-06-04 13:11 PDT, Keith Rollin
no flags Details | Formatted Diff | Diff
Patch (1.83 KB, patch)
2019-06-04 17:08 PDT, Keith Rollin
no flags Details | Formatted Diff | Diff
Patch (1.83 KB, patch)
2019-06-04 17:10 PDT, Keith Rollin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Rollin 2019-06-04 13:08:22 PDT
TileController::blankPixelCountForTiles calculates its result as a uint64_t, but returns it as an unsigned. The former is a 64-bit value, while the latter can be a 32-bit value on some platforms. This mismatch can lead to a compile-time error. Fix this by explicitly casting the 64-bit value to a "signed".
Comment 1 Radar WebKit Bug Importer 2019-06-04 13:08:50 PDT
<rdar://problem/51410851>
Comment 2 Keith Rollin 2019-06-04 13:11:36 PDT
Created attachment 371323 [details]
Patch
Comment 3 Brent Fulgham 2019-06-04 16:45:44 PDT
Comment on attachment 371323 [details]
Patch

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

> Source/WebCore/ChangeLog:13
> +        casting the 64-bit value to a "signed".

signed -> unsigned?
Comment 4 Keith Rollin 2019-06-04 17:08:41 PDT
Created attachment 371352 [details]
Patch
Comment 5 Keith Rollin 2019-06-04 17:09:22 PDT
Thanks. Fixed the think-o.
Comment 6 Keith Rollin 2019-06-04 17:10:21 PDT
Created attachment 371353 [details]
Patch
Comment 7 WebKit Commit Bot 2019-06-04 17:26:16 PDT
Comment on attachment 371353 [details]
Patch

Clearing flags on attachment: 371353

Committed r246091: <https://trac.webkit.org/changeset/246091>
Comment 8 WebKit Commit Bot 2019-06-04 17:26:18 PDT
All reviewed patches have been landed.  Closing bug.