From c2b9331083b1a83e5a3440f0d10b1e7c8b097dee Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 29 Oct 2013 02:17:55 +0900 Subject: [PATCH] fix bad style macro definitinos --- include/picrin/value.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/picrin/value.h b/include/picrin/value.h index 08caa40f..b142dd47 100644 --- a/include/picrin/value.h +++ b/include/picrin/value.h @@ -64,9 +64,9 @@ struct pic_string { struct pic_proc; struct pic_port; -#define pic_obj_ptr(o) ((struct pic_object *)o.u.data) -#define pic_pair_ptr(o) ((struct pic_pair *)o.u.data) -#define pic_str_ptr(v) ((struct pic_string *)v.u.data) +#define pic_obj_ptr(o) ((struct pic_object *)(o).u.data) +#define pic_pair_ptr(o) ((struct pic_pair *)(o).u.data) +#define pic_str_ptr(o) ((struct pic_string *)(o).u.data) enum pic_tt pic_type(pic_value);