[svn:parrot] r40566 - branches/pmc_sans_unionval/include/parrot

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Sat Aug 15 14:11:44 UTC 2009


Author: whiteknight
Date: Sat Aug 15 14:11:44 2009
New Revision: 40566
URL: https://trac.parrot.org/parrot/changeset/40566

Log:
[pmc_sans_unionval] fix up some macro definitions

Modified:
   branches/pmc_sans_unionval/include/parrot/pobj.h

Modified: branches/pmc_sans_unionval/include/parrot/pobj.h
==============================================================================
--- branches/pmc_sans_unionval/include/parrot/pobj.h	Sat Aug 15 14:08:50 2009	(r40565)
+++ branches/pmc_sans_unionval/include/parrot/pobj.h	Sat Aug 15 14:11:44 2009	(r40566)
@@ -134,9 +134,9 @@
 /* do not allow PMC_data2 as lvalue */
 #define PMC_data0(pmc)            (1 ? (pmc)->data : 0)
 #define PMC_data0_typed(pmc)      (type)(1 ? (pmc)->data : 0)
-#define PMC_metadata(pmc)     pmc->_metadata
-#define PMC_next_for_GC(pmc)  pmc->_next_for_GC
-#define PMC_sync(pmc)         pmc->_synchronize
+#define PMC_metadata(pmc)         ((pmc)->_metadata)
+#define PMC_next_for_GC(pmc)      ((pmc)->_next_for_GC)
+#define PMC_sync(pmc)             ((pmc)->_synchronize)
 
 #define POBJ_FLAG(n) ((UINTVAL)1 << (n))
 /* PObj flags */


More information about the parrot-commits mailing list