Commit 5d9d05d3 by Richard Henderson Committed by Richard Henderson

rwlock.cc (gtm_rwlock::write_lock_generic): Fix signed/unsigned comparison werror.

        * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
        signed/unsigned comparison werror.

From-SVN: r182302
parent b826bea7
2011-12-13 Richard Henderson <rth@redhat.com>
* config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
signed/unsigned comparison werror.
* local_atomic: New file.
* libitm_i.h: Include it.
(gtm_thread::shared_state): Use atomic template.
......
......@@ -193,7 +193,7 @@ gtm_rwlock::write_lock_generic (gtm_thread *tx)
it = it->next_thread)
{
// Don't count ourself if this is an upgrade.
if (it->shared_state.load(memory_order_relaxed) != -1)
if (it->shared_state.load(memory_order_relaxed) != (gtm_word)-1)
readers++;
}
......
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