From 0a4f8c42daf6b7b0a44937173793f2f1b1fb7bc0 Mon Sep 17 00:00:00 2001 From: runhwguo <444347292@qq.com> Date: Tue, 6 Dec 2022 13:22:02 +0800 Subject: [PATCH] fix: bitsPerComponent implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion] --- include/private/SkEncodedInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /*