pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/SFML/SFML/pull/3708

/github.githubassets.com/assets/pull-requests-be6017ec12798e73.css" /> Redirect Packet's operators to use unsigned overloads by ZXShady · Pull Request #3708 · SFML/SFML · GitHub
Skip to content

Redirect Packet's operators to use unsigned overloads - #3708

Open
ZXShady wants to merge 1 commit into
SFML:masterfrom
ZXShady:delegate_to_unsigned_ovls
Open

Redirect Packet's operators to use unsigned overloads#3708
ZXShady wants to merge 1 commit into
SFML:masterfrom
ZXShady:delegate_to_unsigned_ovls

Conversation

@ZXShady

@ZXShady ZXShady commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

std::intN_t types are required to be 2's compliment so the unsigned/signed representations are the same, we can just cast them instead of duplicating the code.

signed T can safely be reinterpret_casted to unsigned T and vice versa per https://eel.is/c++draft/basic.lval#11

@ChrisThrasher

Copy link
Copy Markdown
Member

I think I added test coverage for all of these overloads. If the tests pass then that’s probably validation enough for me.

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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy