Skip to content
Permalink
Browse files
Build is broken: bitwise operation between different enumeration type…
…s in ShareableBitmapCG.cpp

https://bugs.webkit.org/show_bug.cgi?id=241876

Unreviewed build fix.

* Source/WebKit/Shared/cg/ShareableBitmapCG.cpp:
(WebKit::bitmapInfo):
Add some casts.

Canonical link: https://commits.webkit.org/251759@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
hortont424 committed Jun 22, 2022
1 parent 92a5846 commit 3f4e9d1a399dc72c6bb0fb80f32ecd9f379d9868
Showing 1 changed file with 2 additions and 2 deletions.
@@ -69,14 +69,14 @@ static CGBitmapInfo bitmapInfo(const ShareableBitmap::Configuration& configurati
{
CGBitmapInfo info = 0;
if (wantsExtendedRange(configuration)) {
info |= kCGBitmapFloatComponents | kCGBitmapByteOrder16Host;
info |= kCGBitmapFloatComponents | static_cast<CGBitmapInfo>(kCGBitmapByteOrder16Host);

if (configuration.isOpaque)
info |= kCGImageAlphaNoneSkipLast;
else
info |= kCGImageAlphaPremultipliedLast;
} else {
info |= kCGBitmapByteOrder32Host;
info |= static_cast<CGBitmapInfo>(kCGBitmapByteOrder32Host);

if (configuration.isOpaque)
info |= kCGImageAlphaNoneSkipFirst;

0 comments on commit 3f4e9d1

Please sign in to comment.