diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-12-08 18:41:04 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-12-08 18:41:04 -0800 |
| commit | b87473c2c87685dea7e8d52b6135c63a1dd8287c (patch) | |
| tree | f4ddf5b15816d90378ac81a537fd672551f8f2be /src/variable.c | |
| parent | b6cc3aca333b8692909c829be7d69bbc556118b4 (diff) | |
| parent | 072871dcc51926c61db91307c0fd16d2b38e92fb (diff) | |
| download | mruby-b87473c2c87685dea7e8d52b6135c63a1dd8287c.tar.gz mruby-b87473c2c87685dea7e8d52b6135c63a1dd8287c.zip | |
Merge pull request #1606 from bggd/patch-1
Fix mod.constants cannot return the single character constant
Diffstat (limited to 'src/variable.c')
| -rw-r--r-- | src/variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/variable.c b/src/variable.c index efcda25c5..7ff68cc17 100644 --- a/src/variable.c +++ b/src/variable.c @@ -963,7 +963,7 @@ const_i(mrb_state *mrb, mrb_sym sym, mrb_value v, void *p) ary = *(mrb_value*)p; s = mrb_sym2name_len(mrb, sym, &len); - if (len > 1 && ISUPPER(s[0])) { + if (len >= 1 && ISUPPER(s[0])) { mrb_ary_push(mrb, ary, mrb_symbol_value(sym)); } return 0; |
