Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bitsPerComponent implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion] #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

runhwguo
Copy link

@runhwguo runhwguo commented Dec 6, 2022

image

include/private/SkEncodedInfo.h:153:59: error: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
return SkEncodedInfo(width, height, color, alpha, bitsPerComponent, std::move(profile));
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~

@google-cla
Copy link

google-cla bot commented Dec 6, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…nt' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
@runhwguo runhwguo force-pushed the bugfix/SkEncodedInfo_bitsPerComponent-implicit-int-conversion branch from 7abcf10 to 0a4f8c4 Compare December 6, 2022 10:59
@skia-codereview-bot
Copy link
Collaborator

This PR (HEAD: 0a4f8c4) has been imported to Gerrit for code review.

Please visit review.skia.org/614376 to see it. Please CC yourself to the Gerrit change.

Note:

  • Skia uses only Gerrit for reviews and submitting code (doc).
  • All comments are handled within Gerrit. Any comments on the GitHub PR will be ignored.
  • The PR author can continue to upload commits to the branch used by the PR in order to address feedback from Gerrit.
  • Once the code is ready to be merged, a maintainer will submit the change on Gerrit and skia-codereview-bot will close this PR.
  • Similarly, if a change is abandoned on Gerrit, the corresponding PR will be closed with a note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants