Skip to content

Commit 5c7841b

Browse files
CaseyCarterjensmaurer
authored andcommitted
[mdspan.layout.stride.cons] Convert to integral type before comparing to 0
`s[i]` is an lvalue of a type that we can only convert to `index_type`; clearly the wording intends that the result of the conversion should be `> 0`.
1 parent 536653b commit 5c7841b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/containers.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20513,7 +20513,8 @@
2051320513
\expects
2051420514
\begin{itemize}
2051520515
\item
20516-
\tcode{s[$i$] > 0} is \tcode{true}
20516+
The result of converting \tcode{s[$i$]} to \tcode{index_type}
20517+
is greater than \tcode{0}
2051720518
for all $i$ in the range $[0, \exposid{rank_})$.
2051820519
\item
2051920520
\tcode{\exposid{REQUIRED-SPAN-SIZE}(e, s)} is representable

0 commit comments

Comments
 (0)