From 775a0332d62618e47c83abc85a5494f95a838b6d Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sat, 15 Jan 2000 22:05:49 +0000 Subject: [PATCH] Fixed bad register constraint in InterlockedCompareExchange. --- win32/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/thread.c b/win32/thread.c index 13675972535..1fd6d50200d 100644 --- a/win32/thread.c +++ b/win32/thread.c @@ -151,7 +151,7 @@ PVOID WINAPI InterlockedCompareExchange( __asm__ ( /* lock for SMP systems */ "lock\n\t" "cmpxchgl %2,(%1)" - :"=r" (ret) + :"=a" (ret) :"r" (Destination),"r" (Exchange), "0" (Comperand) :"memory" ); return ret;