summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-27 18:27:00 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-27 18:27:00 +0000
commit83b0a0109e1eed27ea70e7f37c84621d166a32ce (patch)
tree50eff82af58d2f1138dae28ffb897db09988481a /sv.h
parentf6867f7f3279be1c892878246f56be42b6a65eaa (diff)
downloadperl-83b0a0109e1eed27ea70e7f37c84621d166a32ce.tar.gz
Fix stupid ATOMIC_DEC_AND_TEST typo in sv.h.
p4raw-id: //depot/perl@601
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.h b/sv.h
index bf3454765d..e9614e63a1 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__