This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

copy-paste error in sysdeps/i386/i486/bits/atomic.h


Hi,

Appears to be a minor copy-pasto. Shouldn't have caused any problems but worth fixing I suppose!

/Davin

--- glibc-2.3.3pre1/sysdeps/i386/i486/bits/atomic.h	Sat May 10 15:29:30 2003
+++ libc/sysdeps/i386/i486/bits/atomic.h	Sat Jan 17 19:01:30 2004
@@ -169,7 +169,7 @@
 #define atomic_add(mem, value) \
   (void) ({ if (__builtin_constant_p (value) && (value) == 1)		      \
 	      atomic_increment (mem);					      \
-	    else if (__builtin_constant_p (value) && (value) == 1)	      \
+	    else if (__builtin_constant_p (value) && (value) == -1)	      \
 	      atomic_decrement (mem);					      \
 	    else if (sizeof (*mem) == 1)				      \
 	      __asm __volatile (LOCK_PREFIX "addb %b1, %0"		      \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]