diff options
| author | Artur K <[email protected]> | 2013-03-23 22:00:23 +0100 |
|---|---|---|
| committer | Artur K <[email protected]> | 2013-03-23 22:00:23 +0100 |
| commit | 6a6c26f530718cf086ae5c4da5a7641b2540019a (patch) | |
| tree | 416a44fc4e7d31d4c3da9b41781371d0272aa79b /include | |
| parent | f48fe450acd92d46dee753d40eba1523266aa507 (diff) | |
| download | mruby-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.h | 2 |
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; }; |
