Skip to content

Commit

Permalink
fix: bitsPerComponent implicit conversion loses integer precision: 'i…
Browse files Browse the repository at this point in the history
…nt' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
  • Loading branch information
runhwguo authored and runhwguo committed Dec 6, 2022
1 parent 041a800 commit 0a4f8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/private/SkEncodedInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ struct SkEncodedInfo {
}

return SkEncodedInfo(width, height, color, alpha,
bitsPerComponent, colorDepth, std::move(profile));
static_cast<uint8_t>(bitsPerComponent), colorDepth, std::move(profile));
}

/*
Expand Down

0 comments on commit 0a4f8c4

Please sign in to comment.