summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authordearblue <[email protected]>2018-09-07 00:22:36 +0900
committerdearblue <[email protected]>2018-09-07 22:32:34 +0900
commit366848996a6cce8e733246bce6c3f76d797003bb (patch)
tree45c6835cfdd1b6f5533e4be92265df44e55a0ac2 /src/variable.c
parent1595e8368a561680f8472f2e9f5fb363dcb135b4 (diff)
downloadmruby-366848996a6cce8e733246bce6c3f76d797003bb.tar.gz
mruby-366848996a6cce8e733246bce6c3f76d797003bb.zip
Clear terminated space
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/variable.c b/src/variable.c
index 00bdb4b8d..506b4b63e 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -790,7 +790,7 @@ mrb_vm_const_get(mrb_state *mrb, mrb_sym sym)
proc = mrb->c->ci->proc;
while (proc) {
c2 = MRB_PROC_TARGET_CLASS(proc);
- if (c2 && iv_get(mrb, c2->iv, sym, &v)) {
+ if (c2 && iv_get(mrb, c2->iv, sym, &v)) {
return v;
}
proc = proc->upper;
@@ -988,25 +988,25 @@ struct csym_arg {
struct RClass *c;
mrb_sym sym;
};
-
+
static int
csym_i(mrb_state *mrb, mrb_sym sym, mrb_value v, void *p)
{
struct csym_arg *a = (struct csym_arg*)p;
struct RClass *c = a->c;
-
+
if (mrb_type(v) == c->tt && mrb_class_ptr(v) == c) {
a->sym = sym;
return 1; /* stop iteration */
}
return 0;
}
-
+
static mrb_sym
find_class_sym(mrb_state *mrb, struct RClass *outer, struct RClass *c)
{
struct csym_arg arg;
-
+
if (!outer) return 0;
if (outer == c) return 0;
arg.c = c;