Commit 6ef14ae4 by Roman Odaisky Committed by Benjamin Kosnik

re PR libstdc++/42273 (atomic_2.h:111: = instead of == in if)

2009-12-09  Roman Odaisky  <to.roma.from.bugcc@qwertty.com>

	PR libstdc++/42273
	* include/bits/atomic_2.h: Fix typo.

From-SVN: r155117
parent a1a82749
2009-12-09 Roman Odaisky <to.roma.from.bugcc@qwertty.com>
PR libstdc++/42273
* include/bits/atomic_2.h: Fix typo.
2009-12-07 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/42319
......
......@@ -108,7 +108,7 @@ namespace __atomic2
{
// write_mem_barrier();
_M_i = __v;
if (__m = memory_order_seq_cst)
if (__m == memory_order_seq_cst)
__sync_synchronize();
}
}
......@@ -299,7 +299,7 @@ namespace __atomic2
{
// write_mem_barrier();
_M_i = __i;
if (__m = memory_order_seq_cst)
if (__m == memory_order_seq_cst)
__sync_synchronize();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment