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.
This commit is contained in:
Jonathan Wakely
2025-12-17 09:55:20 +00:00
committed by Jonathan Wakely
parent 84ad0d86df
commit cf8dea631d

View File

@@ -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;
}