Skip to content

Commit e661f52

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

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
@@ -1911,7 +1911,7 @@
19111911
if (memcmp(this, &expected, sizeof(*this)) == 0)
19121912
memcpy(this, &desired, sizeof(*this));
19131913
else
1914-
memcpy(expected, this, sizeof(*this));
1914+
memcpy(&expected, this, sizeof(*this));
19151915
\end{codeblock}
19161916
\end{note}
19171917
\begin{example}

0 commit comments

Comments
 (0)