From: Jonathan Wakely Date: Wed, 17 Dec 2025 09:55:20 +0000 (+0000) Subject: libstdc++: Restore braces around body of if-statement X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf8dea631d490801b6aa8af0d5d796eba5366434;p=thirdparty%2Fgcc.git 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 --git a/libstdc++-v3/include/bits/random.tcc b/libstdc++-v3/include/bits/random.tcc index 053307519b4..c3b4776d358 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; }