summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2015-03-17 03:09:30 (GMT)
committerMike Hommey <mh@glandium.org>2015-03-17 03:09:30 (GMT)
commitc9db461ffb608ad32aed0e34663ae58a992e1003 (patch)
tree72b18267c39d3ce3133aa6822a85a9d3632eb709
parent04211e226628c41da4b3804ba411b5dd4b3a02ab (diff)
downloadjemalloc-c9db461ffb608ad32aed0e34663ae58a992e1003.zip
jemalloc-c9db461ffb608ad32aed0e34663ae58a992e1003.tar.gz
jemalloc-c9db461ffb608ad32aed0e34663ae58a992e1003.tar.bz2
Use InterlockedCompareExchange instead of non-existing InterlockedCompareExchange32
-rw-r--r--include/jemalloc/internal/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/atomic.h b/include/jemalloc/internal/atomic.h
index 0d33065..522dd2a 100644
--- a/include/jemalloc/internal/atomic.h
+++ b/include/jemalloc/internal/atomic.h
@@ -457,7 +457,7 @@ atomic_cas_uint32(uint32_t *p, uint32_t c, uint32_t s)
{
uint32_t o;
- o = InterlockedCompareExchange32(p, s, c);
+ o = InterlockedCompareExchange(p, s, c);
return (o != c);
}