diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-06-01 10:36:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:20:59 +0900 |
| commit | 2a366ffba8397c6f848d659dce76e03e1bf05d17 (patch) | |
| tree | ab3d1e81ebf3659e3f5776729c8ebe1b7cbbee86 /mrbgems/mruby-struct | |
| parent | 8864c30d161e627438b86a986c19c048eb31bcb4 (diff) | |
| download | mruby-2a366ffba8397c6f848d659dce76e03e1bf05d17.tar.gz mruby-2a366ffba8397c6f848d659dce76e03e1bf05d17.zip | |
Use functions that take symbols to reduce string litrals in C.
Diffstat (limited to 'mrbgems/mruby-struct')
| -rw-r--r-- | mrbgems/mruby-struct/src/struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index ee5ef85ae..4f50fe5dd 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/mrbgems/mruby-struct/src/struct.c @@ -20,7 +20,7 @@ static struct RClass * struct_class(mrb_state *mrb) { - return mrb_class_get(mrb, "Struct"); + return mrb_class_get_id(mrb, MRB_SYM(Struct)); } static inline mrb_value |
