From 62f0a50faf813d4dfd30b1c5d25405f7e1cfaa12 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 3 Dec 2013 11:53:36 +0900 Subject: [PATCH] set bitfield to union header.mark --- include/picrin/gc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/picrin/gc.h b/include/picrin/gc.h index 0562f5f1..fc5a644d 100644 --- a/include/picrin/gc.h +++ b/include/picrin/gc.h @@ -2,15 +2,15 @@ #define GC_H__ enum pic_gc_mark { - PIC_GC_MARK, - PIC_GC_UNMARK + PIC_GC_UNMARK = 0, + PIC_GC_MARK }; union header { struct { union header *ptr; size_t size; - enum pic_gc_mark mark; + enum pic_gc_mark mark : 1; } s; long alignment[2]; };