summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorArtur K <[email protected]>2013-03-23 22:00:23 +0100
committerArtur K <[email protected]>2013-03-23 22:00:23 +0100
commit6a6c26f530718cf086ae5c4da5a7641b2540019a (patch)
tree416a44fc4e7d31d4c3da9b41781371d0272aa79b /include
parentf48fe450acd92d46dee753d40eba1523266aa507 (diff)
downloadmruby-6a6c26f530718cf086ae5c4da5a7641b2540019a.tar.gz
mruby-6a6c26f530718cf086ae5c4da5a7641b2540019a.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/data.h2
1 files changed, 1 insertions, 1 deletions
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;
};