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.
This commit is contained in:
Artur K
2013-03-23 22:00:23 +01:00
parent f48fe450ac
commit 6a6c26f530
+1 -1
View File
@@ -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;
};