Skip to content

Commit e7e52d2

Browse files
JohelEGPjensmaurer
authored andcommitted
[atomics.types.operations] Fix typo in exposition-only code
Fixes NB JP 010 (C++20 DIS)
1 parent 2934897 commit e7e52d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/atomics.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,7 @@
19071907
if (memcmp(this, &expected, sizeof(*this)) == 0)
19081908
memcpy(this, &desired, sizeof(*this));
19091909
else
1910-
memcpy(expected, this, sizeof(*this));
1910+
memcpy(&expected, this, sizeof(*this));
19111911
\end{codeblock}
19121912
\end{note}
19131913
\begin{example}

0 commit comments

Comments
 (0)