diff options
author | Richard Braun <rbraun@sceen.net> | 2017-05-10 00:11:03 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-05-10 00:12:17 +0200 |
commit | 8b8522b33ff8e32ee88bee61e58b61d285a35b58 (patch) | |
tree | f5203b4c4af82d7da6a50e254f52afb84b83ffa4 | |
parent | a1c5aab9aeefe17d0b17bcf7b2f9646c2567d061 (diff) |
x86/atomic: fix declaration of internal variables in atomic_store
-rw-r--r-- | arch/x86/machine/atomic.h | 2 |
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); \ |