Version of Awkward Array
2.8.2
Version of Awkward-cpp
45
Description and code to reproduce
src/libawkward/forth/ForthInputBuffer.cpp:196:31: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
196 | double positive_infinity = *(double*)&bits_infinity;
| ^~~~~~~~~~~~~~~~~~~~~~~
The line is
|
double positive_infinity = *(double*)&bits_infinity; |
I think the better way to do this is:
double positive_infinity = std::numeric_limits<double>::infinity();
double negative_infinity = -std::numeric_limits<double>::infinity();
See-also: https://bugs.gentoo.org/955697
Version of Awkward Array
2.8.2
Version of Awkward-cpp
45
Description and code to reproduce
The line is
awkward/awkward-cpp/src/libawkward/forth/ForthInputBuffer.cpp
Line 196 in ae1a51a
I think the better way to do this is:
See-also: https://bugs.gentoo.org/955697