From: Malcolm Beattie Date: Fri, 27 Feb 1998 18:27:00 +0000 (+0000) Subject: Fix stupid ATOMIC_DEC_AND_TEST typo in sv.h. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=83b0a0109e1eed27ea70e7f37c84621d166a32ce;p=p5sagit%2Fp5-mst-13.2.git Fix stupid ATOMIC_DEC_AND_TEST typo in sv.h. p4raw-id: //depot/perl@601 --- diff --git a/sv.h b/sv.h index bf34547..e9614e6 100644 --- a/sv.h +++ b/sv.h @@ -95,7 +95,7 @@ struct io { # endif /* EMULATE_ATOMIC_REFCOUNTS */ #else # define ATOMIC_INC(count) (++count) -# define ATOMIC_DEC_AND_TEST(res, count) (res = --count) +# define ATOMIC_DEC_AND_TEST(res, count) (res = (--count == 0)) #endif /* USE_THREADS */ #ifdef __GNUC__