diff --git a/include/private/SkEncodedInfo.h b/include/private/SkEncodedInfo.h index 74e2ad1480ce..3f8243e2625a 100644 --- a/include/private/SkEncodedInfo.h +++ b/include/private/SkEncodedInfo.h @@ -165,7 +165,7 @@ struct SkEncodedInfo { } return SkEncodedInfo(width, height, color, alpha, - bitsPerComponent, colorDepth, std::move(profile)); + static_cast(bitsPerComponent), colorDepth, std::move(profile)); } /*