File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 884
884
885
885
\pnum
886
886
\indextext {conversion!bool@\tcode {bool}}%
887
- If the destination type is \tcode {bool}, see~\ref {conv.bool }. If the
888
- source type is \tcode {bool}, the value \tcode {false} is converted to
889
- zero and the value \tcode {true} is converted to one.
890
-
891
- \pnum
892
887
\indextext {conversion!to unsigned}%
893
888
\indextext {conversion!to signed}%
889
+ If the source type is \tcode {bool}, the value \tcode {false} is converted to
890
+ zero and the value \tcode {true} is converted to one.
894
891
Otherwise, the result is the unique value of the destination type
895
892
that is congruent to the source integer modulo $ 2 ^N$ ,
896
893
where $ N$ is the width of the destination type.
897
894
898
895
\pnum
899
- The conversions allowed as integral promotions are excluded from the set
900
- of integral conversions.
896
+ The conversions performed by integral promotions and boolean conversions are
897
+ excluded from the set of integral conversions.
901
898
902
899
\rSec 2[conv.double]{Floating-point conversions}
903
900
912
909
Otherwise, the behavior is undefined.
913
910
914
911
\pnum
915
- The conversions allowed as floating-point promotions are excluded from
912
+ The conversion performed by floating-point promotion is excluded from
916
913
the set of floating-point conversions.
917
914
918
915
\rSec 2[conv.fpint]{Floating-integral conversions}
You can’t perform that action at this time.
0 commit comments