Bug 198540

Summary: Fix 64-bit vs 32-bit mismatch in TileController.cpp
Product: WebKit Reporter: Keith Rollin <krollin>
Component: WebCore Misc.Assignee: Keith Rollin <krollin>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

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.