tanh_sinh quadrature underflows integers
Closed this issue · 0 comments
gphlipot13 commented
Description
It is possible for some integrals (and some scalar types), the tanh_sinh quadrature method underflows an unsigned integer, resulting in undefined behavior.
Steps to reproduce
See an example where the https://godbolt.org/z/5seaesETo
The integer underflow occurs on this line when max_left_position
is 0.