diff options
author | Stefan Fritsch <sf@apache.org> | 2013-04-21 21:25:59 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2013-04-21 21:25:59 +0000 |
commit | 9d18bbb3cf3a99744e679a081499b92504cabadf (patch) | |
tree | 396fd64fbcb0f405734416e825f9814304b1ddcd /atomic | |
parent | 08fd9446d37235e84588f47e7067ae035e2b0bed (diff) | |
download | apr-9d18bbb3cf3a99744e679a081499b92504cabadf.tar.gz |
Fix amd64 assembler version of apr_atomic_xchgptr()
PR: 51851
Submitted by: Mattias EngdegÄrd <mattiase acm org>
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1470348 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic')
-rw-r--r-- | atomic/unix/ia32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/atomic/unix/ia32.c b/atomic/unix/ia32.c index 3826f9275..63f48a753 100644 --- a/atomic/unix/ia32.c +++ b/atomic/unix/ia32.c @@ -117,7 +117,7 @@ APR_DECLARE(void*) apr_atomic_xchgptr(volatile void **mem, void *with) #elif APR_SIZEOF_VOIDP == 8 asm volatile ("xchgq %q2, %1" : "=a" (prev), "+m" (*mem) - : "r" ((unsigned long)with)); + : "0" (with)); #else #error APR_SIZEOF_VOIDP value not supported #endif |