summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-05-10 00:11:03 +0200
committerRichard Braun <rbraun@sceen.net>2017-05-10 00:12:17 +0200
commit8b8522b33ff8e32ee88bee61e58b61d285a35b58 (patch)
treef5203b4c4af82d7da6a50e254f52afb84b83ffa4
parenta1c5aab9aeefe17d0b17bcf7b2f9646c2567d061 (diff)
x86/atomic: fix declaration of internal variables in atomic_store
-rw-r--r--arch/x86/machine/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/machine/atomic.h b/arch/x86/machine/atomic.h
index 6844f328..9f130a5a 100644
--- a/arch/x86/machine/atomic.h
+++ b/arch/x86/machine/atomic.h
@@ -65,7 +65,7 @@ MACRO_BEGIN \
if (sizeof(*(ptr)) != 8) { \
__atomic_store_n(ptr, val, mo); \
} else { \
- typeof(val) ___oval, ___nval; \
+ typeof(*(ptr)) ___oval, ___nval; \
bool ___done; \
\
___oval = *(ptr); \