https://gcc.gnu.org/g:cf8dea631d490801b6aa8af0d5d796eba5366434
commit r16-6212-gcf8dea631d490801b6aa8af0d5d796eba5366434 Author: Jonathan Wakely <[email protected]> Date: Wed Dec 17 09:55:20 2025 +0000 libstdc++: Restore braces around body of if-statement libstdc++-v3/ChangeLog: * include/bits/random.tcc [_GLIBCXX_USE_OLD_GENERATE_CANONICAL] (generate_canonical): Restore braces around statement. Diff: --- libstdc++-v3/include/bits/random.tcc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/include/bits/random.tcc b/libstdc++-v3/include/bits/random.tcc index 053307519b4b..c3b4776d3580 100644 --- a/libstdc++-v3/include/bits/random.tcc +++ b/libstdc++-v3/include/bits/random.tcc @@ -3733,12 +3733,14 @@ namespace __detail } __ret = __sum / __tmp; if (__builtin_expect(__ret >= _RealType(1), 0)) + { # if _GLIBCXX_USE_C99_MATH_FUNCS __ret = std::nextafter(_RealType(1), _RealType(0)); # else __ret = _RealType(1) - std::numeric_limits<_RealType>::epsilon() / _RealType(2); # endif + } return __ret; }
