Skip to content

Conversation

Cyberax
Copy link
Contributor

@Cyberax Cyberax commented Jul 23, 2025

The result of casting a double to uint64_t is undefined, if the double is greater than the numeric limits of uint64_t.

Fixes #239

The result of casting a double to uint64_t is undefined, if the double
is greater than the numeric limits of uint64_t.
@wcandillon wcandillon self-requested a review July 24, 2025 10:40
@wcandillon
Copy link
Owner

@Cyberax Thank You for this :)

@wcandillon wcandillon merged commit f4b5bcb into wcandillon:main Jul 24, 2025
6 checks passed
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.

Undefined behavior leading to a crash
2 participants