Skip to content

Commit 6228b82

Browse files
author
Dawn Perchik
committed
P1123R0 Editorial Guidance for merging P0019r8 and P0528r3
1 parent 12935b8 commit 6228b82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/atomics.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,8 @@
848848

849849
\pnum
850850
\effects Retrieves the value in \tcode{expected}.
851-
It then atomically compares the value referenced by \tcode{*ptr} for equality
851+
It then atomically compares the value representation of
852+
the value referenced by \tcode{*ptr} for equality
852853
with that previously retrieved from \tcode{expected},
853854
and if \tcode{true}, replaces the value referenced by \tcode{*ptr}
854855
with that in \tcode{desired}.
@@ -865,7 +866,7 @@
865866
the value \tcode{memory_order_relaxed}.
866867
If and only if the comparison is \tcode{false} then,
867868
after the atomic operation,
868-
the contents of the memory in \tcode{expected} are replaced by
869+
the value in \tcode{expected} is replaced by
869870
the value read from the value referenced by \tcode{*ptr}
870871
during the atomic comparison.
871872
If the operation returns \tcode{true},

0 commit comments

Comments
 (0)