Commit 3c63d380 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Fix loop condition in `mrb_sym_all_symbols`

parent 63d4e8ec
......@@ -25,7 +25,7 @@ mrb_sym_all_symbols(mrb_state *mrb, mrb_value self)
mrb_sym i, lim;
mrb_value ary = mrb_ary_new_capa(mrb, mrb->symidx);
for (i=1; i<MRB_PRESYM_MAX; i++) {
for (i=1; i<=MRB_PRESYM_MAX; i++) {
mrb_ary_push(mrb, ary, mrb_symbol_value(i));
}
for (i=1, lim=mrb->symidx+1; i<lim; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment