Skip to content

premultiplied-argb: avoid undefined behavior#134

Open
bgilbert wants to merge 1 commit into
openslide:mainfrom
bgilbert:premult
Open

premultiplied-argb: avoid undefined behavior#134
bgilbert wants to merge 1 commit into
openslide:mainfrom
bgilbert:premult

Conversation

@bgilbert
Copy link
Copy Markdown
Member

Don't left shift into the sign bit after integer promotion.

@openslide-bot
Copy link
Copy Markdown
Member

openslide-bot commented May 23, 2026

DCO signed off ✔️

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

Don't left shift into the sign bit after integer promotion.

Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants