[pypy-commit] pypy stm-gc: Ah bah
arigo
noreply at buildbot.pypy.org
Thu Feb 9 17:36:04 CET 2012
Author: Armin Rigo <arigo at tunes.org>
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))
More information about the pypy-commit
mailing list