From 6a6c26f530718cf086ae5c4da5a7641b2540019a Mon Sep 17 00:00:00 2001 From: Artur K Date: Sat, 23 Mar 2013 22:00:23 +0100 Subject: Changed the RData type field to 'const' Within the mruby source code the 'type' field is either initialized, or used in const manner. IMHO changing the type after it has been created might cause hard to track errors. --- include/mruby/data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mruby/data.h b/include/mruby/data.h index 55405e994..6ddaebfaa 100644 --- a/include/mruby/data.h +++ b/include/mruby/data.h @@ -19,7 +19,7 @@ typedef struct mrb_data_type { struct RData { MRB_OBJECT_HEADER; struct iv_tbl *iv; - mrb_data_type *type; + const mrb_data_type *type; void *data; }; -- cgit v1.2.3