[svn:parrot] r47150 - branches/gc_massacre/src/gc
bacek at svn.parrot.org
bacek at svn.parrot.org
Sun May 30 14:48:31 UTC 2010
Author: bacek
Date: Sun May 30 14:48:31 2010
New Revision: 47150
URL: https://trac.parrot.org/parrot/changeset/47150
Log:
Fix list macros.
Modified:
branches/gc_massacre/src/gc/list.h
Modified: branches/gc_massacre/src/gc/list.h
==============================================================================
--- branches/gc_massacre/src/gc/list.h Sun May 30 14:48:10 2010 (r47149)
+++ branches/gc_massacre/src/gc/list.h Sun May 30 14:48:31 2010 (r47150)
@@ -33,8 +33,8 @@
/* Such headers allocated in front of real objects. */
/* There is helper macros to convert to/from real objects */
-#define Obj2LLH(p) (List_Item_Header* ((char*)(p) - sizeof (List_Item_Header))
-#define LLH2Obj_typed(p, type), ((type*)((char*)(p) + sizeof (List_Item_Header))
+#define Obj2LLH(p) ((List_Item_Header *)((char*)(p) - sizeof (List_Item_Header)))
+#define LLH2Obj_typed(p, type) ((type*)((char*)(p) + sizeof (List_Item_Header)))
#define LLH2Obj(p) LLH2Obj_typed(p, void)
More information about the parrot-commits
mailing list