mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
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:
committed by
Jonathan Wakely
parent
84ad0d86df
commit
cf8dea631d
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user