ruby-changes:61283
From: Nobuyoshi <ko1@a...>
Date: Mon, 18 May 2020 12:47:13 +0900 (JST)
Subject: [ruby-changes:61283] c0cd474d4f (master): Prefer dedicated enum over int
https://git.ruby-lang.org/ruby.git/commit/?id=c0cd474d4f From c0cd474d4ffedb1eeb49505f53c0727a008bdd3e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 18 May 2020 12:41:59 +0900 Subject: Prefer dedicated enum over int diff --git a/compile.c b/compile.c index 6ce68e5..574354f 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 https://github.com/ruby/ruby/blob/trunk/compile.c#L6946 } 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(...) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/