Skip to content

Fix NaN and infinity detection - #31

Open
coincoin57660-byte wants to merge 1 commit into
tsoding:masterfrom
coincoin57660-byte:fix-issue
Open

Fix NaN and infinity detection#31
coincoin57660-byte wants to merge 1 commit into
tsoding:masterfrom
coincoin57660-byte:fix-issue

Conversation

@coincoin57660-byte

Copy link
Copy Markdown

Fix is_nan_or_inf() in jim2.h using memcpy
This avoids the previous unsafe type-punning expression for an all-ones IEEE 754 exponent.

Tested compilation with GCC 16.1 on Windows.

@coincoin57660-byte

Copy link
Copy Markdown
Author

Fixes issue #30

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.

1 participant