Skip to content

Commit 7066a90

Browse files
authored
[expr.reinterpret.cast] Clarify that pointer->int type restriction looks at the type not the pointer value.
We were imprecise in what we meant by "large enough to hold it", but the intent is clear.
1 parent 7b14fe1 commit 7066a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3110,7 +3110,7 @@
31103110
\indextext{cast!reinterpret!pointer to integer}%
31113111
\indextext{cast!pointer to integer}%
31123112
A pointer can be explicitly converted to any integral type large enough
3113-
to hold it.
3113+
to hold all values of its type.
31143114
\indextext{conversion!implementation-defined pointer integer}%
31153115
The mapping function is \impldef{mapping of pointer to integer}.
31163116
\begin{note}

0 commit comments

Comments
 (0)