Missed FREAD in bytecode.h
[p5sagit/p5-mst-13.2.git] / sv.h
diff --git a/sv.h b/sv.h
index bf34547..e9614e6 100644 (file)
--- 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__