Author: Armin Rigo <[email protected]>
Branch: stm-gc
Changeset: r52322:d5104b01f3ed
Date: 2012-02-09 17:26 +0100
http://bitbucket.org/pypy/pypy/changeset/d5104b01f3ed/

Log:    Ah bah

diff --git a/pypy/translator/stm/src_stm/et.h b/pypy/translator/stm/src_stm/et.h
--- a/pypy/translator/stm/src_stm/et.h
+++ b/pypy/translator/stm/src_stm/et.h
@@ -65,8 +65,8 @@
 #define RPY_STM_FIELD(T, size, STRUCT, ptr, field)              \
     _RPY_STM(T, size, ptr, offsetof(STRUCT, field), ptr->field)
 
-#define _RPY_STM(T, size, ptr, offset, field)   \
-    (*(long*)ptr & GCFLAG_GLOBAL ? field :      \
+#define _RPY_STM(T, size, ptr, offset, field)           \
+    (((*(long*)ptr) & GCFLAG_GLOBAL) == 0 ? field :     \
      (T)stm_read_int##size(ptr, offset))
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to