From 7bcc535a05dbffcf057f3a4fba27bbcdee940dfa Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 29 Sep 2018 17:49:03 +0000 Subject: [PATCH] Remove unnecessary use of function pointer git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re.c b/re.c index b0b53c1de4..0d35bc0cfd 100644 --- a/re.c +++ b/re.c @@ -3085,7 +3085,7 @@ reg_operand(VALUE s, int check) return rb_sym2str(s); } else { - return (check ? rb_str_to_str : rb_check_string_type)(s); + return check ? rb_str_to_str(s) : rb_check_string_type(s); } }