From b5b30de05ac6d03ccb95ef6ec3e7146c4b1c8bf6 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 3 Dec 2013 11:49:32 +0900 Subject: [PATCH] remove a field for debug of union header --- include/picrin/gc.h | 1 - src/gc.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/picrin/gc.h b/include/picrin/gc.h index 74544c0d..0562f5f1 100644 --- a/include/picrin/gc.h +++ b/include/picrin/gc.h @@ -11,7 +11,6 @@ union header { union header *ptr; size_t size; enum pic_gc_mark mark; - enum pic_tt tt; } s; long alignment[2]; }; diff --git a/src/gc.c b/src/gc.c index 6255d6e8..dae60db3 100644 --- a/src/gc.c +++ b/src/gc.c @@ -674,7 +674,6 @@ pic_obj_alloc_unsafe(pic_state *pic, size_t size, enum pic_tt tt) } } obj->tt = tt; - (((union header *)obj) - 1)->s.tt = tt; return obj; }