Skip to content

Conversation

@jzmaddock
Copy link
Collaborator

Also adds better error checking.
Fixes #1348

Also adds better error checking.
Fixes #1348
Comment on lines 363 to +366
// PowerPC extended double precision format (128 bits)

static_assert(LDBL_MANT_DIG == 113, "Oops, assumption that long double is a 128-bit quantity is incorrect!!");

Copy link
Member

Choose a reason for hiding this comment

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

In the PowerPC case should we check both 106 and 113 for LDBL_MANT_DIG? I assume the original code is old enough that 106 was the only option at the time.

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.

Fix for buffer overflow in fp_traits.hpp on aarch64 / mingw

3 participants