Skip to content

Conversation

@MaxGraey
Copy link
Member

@MaxGraey MaxGraey commented May 30, 2021

Some negative inputs for acosh may produce non-NaN values while all range x < 1 should always return NaN. This PR fix this.

Thanks to @Yaffle for finding this edge case

  • I've read the contributing guidelines

@MaxGraey MaxGraey changed the title fix: Fix negative inputs of acosh fix: Fix negative inputs of Math.acosh May 30, 2021
@dcodeIO
Copy link
Member

dcodeIO commented May 30, 2021

Is it expected that musl may eventually fix this in a different way? If so, perhaps a comment? :)

Copy link
Member

@dcodeIO dcodeIO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@MaxGraey MaxGraey merged commit 8611261 into AssemblyScript:master Jun 1, 2021
@MaxGraey MaxGraey deleted the fix-math-funcs branch June 1, 2021 14:43
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