Skip to content

Commit 5cf201a

Browse files
committed
CWG2864 Narrowing floating-point conversions
1 parent 70d1ef1 commit 5cf201a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/declarations.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6258,10 +6258,9 @@
62586258
\item from a floating-point type \tcode{T} to another floating-point type
62596259
whose floating-point conversion rank is neither greater than nor equal to
62606260
that of \tcode{T},
6261-
except where the source is a constant expression and
6262-
the actual value after conversion
6263-
is within the range of values that can be represented (even if it cannot be represented exactly),
6264-
or
6261+
except where the result of the conversion is a constant expression and
6262+
either its value is finite and the conversion did not overflow, or
6263+
the values before and after the conversion are not finite, or
62656264

62666265
\item from an integer type or unscoped enumeration type to a floating-point type, except
62676266
where the source is a constant expression and the actual value after conversion will fit

0 commit comments

Comments
 (0)