# HG changeset patch # User Igor Sysoev # Date 1177684588 0 # Node ID c114defa4518399a8e4b33fa624399fc8998c19f # Parent e63a4d44939812fabc24e6a433476cd11c89aa9c fix atomic operations on sparc64 built by SunPro C diff -r e63a4d449398 -r c114defa4518 src/os/unix/ngx_sunpro_atomic_sparc64.h --- a/src/os/unix/ngx_sunpro_atomic_sparc64.h Tue Apr 24 06:26:56 2007 +0000 +++ b/src/os/unix/ngx_sunpro_atomic_sparc64.h Fri Apr 27 14:36:28 2007 +0000 @@ -24,7 +24,7 @@ ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, ngx_atomic_uint_t set) { - NGX_CASA(set, old, lock); + set = NGX_CASA(set, old, lock); return (set == old); } @@ -41,7 +41,7 @@ res = old + add; - NGX_CASA(res, old, value); + res = NGX_CASA(res, old, value); if (res == old) { return res;