[前][次][番号順一覧][スレッド一覧]

ruby-changes:52672

From: naruse <ko1@a...>
Date: Sun, 30 Sep 2018 02:49:09 +0900 (JST)
Subject: [ruby-changes:52672] naruse:r64884 (trunk): Remove unnecessary use of function pointer

naruse	2018-09-30 02:49:03 +0900 (Sun, 30 Sep 2018)

  New Revision: 64884

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64884

  Log:
    Remove unnecessary use of function pointer

  Modified files:
    trunk/re.c
Index: re.c
===================================================================
--- re.c	(revision 64883)
+++ re.c	(revision 64884)
@@ -3085,7 +3085,7 @@ reg_operand(VALUE s, int check) https://github.com/ruby/ruby/blob/trunk/re.c#L3085
 	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);
     }
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]