diff options
Diffstat (limited to 'src/os/win32/ngx_atomic.h')
-rw-r--r-- | src/os/win32/ngx_atomic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os/win32/ngx_atomic.h b/src/os/win32/ngx_atomic.h index 1e3334548..8003b740f 100644 --- a/src/os/win32/ngx_atomic.h +++ b/src/os/win32/ngx_atomic.h @@ -25,7 +25,8 @@ typedef volatile ngx_atomic_uint_t ngx_atomic_t; /* the new SDK headers */ #define ngx_atomic_cmp_set(lock, old, set) \ - (InterlockedCompareExchange((long *) lock, set, old) == old) + ((ngx_atomic_uint_t) InterlockedCompareExchange((long *) lock, set, old) \ + == old) #else |