summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-09-08 11:20:11 +0900
committerGitHub <[email protected]>2018-09-08 11:20:11 +0900
commitf93734f6228e541ea4eee5f2dd208981ce6e38bd (patch)
treef9cae1ed00e9b565e62c875106a7b71694b2966e /src/variable.c
parent625976d7931006bae7e960e561ecdaccb0cb6a28 (diff)
parent366848996a6cce8e733246bce6c3f76d797003bb (diff)
downloadmruby-f93734f6228e541ea4eee5f2dd208981ce6e38bd.tar.gz
mruby-f93734f6228e541ea4eee5f2dd208981ce6e38bd.zip
Merge pull request #4110 from dearblue/fix-typo1
Fix typo
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;