summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-18 12:41:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-18 12:42:33 +0900
commitc0cd474d4ffedb1eeb49505f53c0727a008bdd3e (patch)
treebe9730c188fd481036f02fad9daef90bb17684fc /compile.c
parentacf61e85f3a593521f56fdbb9cd17c874a67322f (diff)
Prefer dedicated enum over int
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 6ce68e5443..574354f893 100644
--- a/compile.c
+++ b/compile.c
@@ -6946,7 +6946,7 @@ delegate_call_p(const rb_iseq_t *iseq, unsigned int argc, const LINK_ANCHOR *arg
}
static int
-compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, int type, int line, int popped)
+compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, const enum node_type type, int line, int popped)
{
/* call: obj.method(...)
* fcall: func(...)