Skip to content

Commit 16ee8e0

Browse files
committed
[dcl.enum, conv.prom] Style min/max subscripts as labels, not variables.
1 parent 6f5c004 commit 16ee8e0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

source/conversions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
A prvalue of an unscoped enumeration type whose underlying type is not
359359
fixed~(\ref{dcl.enum}) can be converted to a prvalue of the first of the following
360360
types that can represent all the values of the enumeration (i.e., the values in the
361-
range $b_\mathit{min}$ to $b_\mathit{max}$ as described in~\ref{dcl.enum}): \tcode{int},
361+
range $b_\text{min}$ to $b_\text{max}$ as described in~\ref{dcl.enum}): \tcode{int},
362362
\tcode{unsigned int}, \tcode{long} \tcode{int}, \tcode{unsigned long} \tcode{int},
363363
\tcode{long long int}, or \tcode{unsigned long long int}. If none of the types in that
364364
list can represent all the values of the enumeration, a prvalue of an unscoped

source/declarations.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,16 +2127,16 @@
21272127
\indextext{signed integer representation!signed magnitude}%
21282128
For an enumeration whose underlying type is fixed, the values of
21292129
the enumeration are the values of the underlying type. Otherwise,
2130-
for an enumeration where $e_\mathit{min}$ is the smallest enumerator and
2131-
$e_\mathit{max}$ is the largest, the values of the enumeration are the
2132-
values in the range $b_{min}$ to $b_{max}$, defined as follows: Let $K$
2130+
for an enumeration where $e_\text{min}$ is the smallest enumerator and
2131+
$e_\text{max}$ is the largest, the values of the enumeration are the
2132+
values in the range $b_\text{min}$ to $b_\text{max}$, defined as follows: Let $K$
21332133
be 1 for a two's complement representation and 0 for a ones' complement
2134-
or sign-magnitude representation. $b_{max}$ is the smallest value
2135-
greater than or equal to $max(|e_{min}| - K, |e_{max}|)$ and equal to
2136-
$2^M-1$, where $M$ is a non-negative integer. $b_{min}$ is zero if
2137-
$e_{min}$ is non-negative and $-(b_{max}+K)$ otherwise. The size of the
2134+
or sign-magnitude representation. $b_\text{max}$ is the smallest value
2135+
greater than or equal to $max(|e_\text{min}| - K, |e_\text{max}|)$ and equal to
2136+
$2^M-1$, where $M$ is a non-negative integer. $b_\text{min}$ is zero if
2137+
$e_\text{min}$ is non-negative and $-(b_\text{max}+K)$ otherwise. The size of the
21382138
smallest bit-field large enough to hold all the values of the
2139-
enumeration type is $max(M,1)$ if $b_{min}$ is zero and $M+1$ otherwise.
2139+
enumeration type is $max(M,1)$ if $b_\text{min}$ is zero and $M+1$ otherwise.
21402140
It is possible to define an enumeration that has values not defined by
21412141
any of its enumerators. If the \grammarterm{enumerator-list} is empty, the
21422142
values of the enumeration are as if the enumeration had a single enumerator with

0 commit comments

Comments
 (0)