diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-27 23:24:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:20:58 +0900 |
| commit | 00f5ddc9aeeab49d656044d14a03765bd6fdfc53 (patch) | |
| tree | d6e5b08a7b55bfa17a73d94911413f257503b35c /mrbgems/mruby-compiler/core/codegen.c | |
| parent | dcd3e5907ca830f118bf7b55bbf1b1210a67385d (diff) | |
| download | mruby-00f5ddc9aeeab49d656044d14a03765bd6fdfc53.tar.gz mruby-00f5ddc9aeeab49d656044d14a03765bd6fdfc53.zip | |
Use `mrb_funcall_id()` extensively.
Except for support files e.g. `mruby-test/driver.c`, which are not
target of symbol collection via `rake gensym`.
Diffstat (limited to 'mrbgems/mruby-compiler/core/codegen.c')
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 980906e38..b8dd55bd4 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -1603,7 +1603,7 @@ codegen(codegen_scope *s, node *tree, int val) { node *n = tree->car->cdr; mrb_sym mid = nsym(n->cdr->car); - mrb_sym mnil = mrb_intern_lit(s->mrb, "nil?"); + mrb_sym mnil = MRB_QSYM(nil_p); if (mid == mnil && n->cdr->cdr->car == NULL) { nil_p = TRUE; codegen(s, n->car, VAL); |
