Skip to content

Commit 48a667c

Browse files
committed
Add comment about the root cause.
1 parent c433cfc commit 48a667c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/src/__support/FPUtil/except_value_utils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ template <typename T, size_t N> struct ExceptValues {
8787
out_bits += values[i].rnd_upward_offset;
8888
break;
8989
case FE_DOWNWARD:
90+
// Use conditionals instead of ternary operator to work around gcc's
91+
// -Wconversion false positive bug:
92+
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101537
9093
if (sign)
9194
out_bits += values[i].rnd_upward_offset;
9295
else

0 commit comments

Comments
 (0)