Skip to content

Fix safe_abs in int_pow

Reference issue

What does this implement/fix?

Previous "safe" absolute value function did not work on clang as static_cast is undefined if the input is outside the range of the result type.

https://godbolt.org/z/r9zrPjhz8

Additional information

Edited by Charles Schlosser

Merge request reports

Loading