Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[conv.integral, conv.double] Fix promotion conversions #3963

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,7 @@

\pnum
\indextext{conversion!bool@\tcode{bool}}%
If the destination type is \keyword{bool}, see~\ref{conv.bool}. If the
source type is \keyword{bool}, the value \keyword{false} is converted to
If the source type is \keyword{bool}, the value \keyword{false} is converted to
zero and the value \keyword{true} is converted to one.

\pnum
Expand All @@ -940,8 +939,8 @@
where $N$ is the width of the destination type.

\pnum
The conversions allowed as integral promotions are excluded from the set
of integral conversions.
The conversions allowed as integral promotions and boolean conversions are
excluded from the set of integral conversions.

\rSec2[conv.double]{Floating-point conversions}

Expand All @@ -962,7 +961,7 @@
Otherwise, the behavior is undefined.

\pnum
The conversions allowed as floating-point promotions are excluded from
Floating-point promotion is excluded from
the set of floating-point conversions.

\rSec2[conv.fpint]{Floating-integral conversions}
Expand Down