summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-16 00:20:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-16 00:20:31 +0000
commit5f9c188d978d45cdeb81ec83dfdaddffe1b8996c (patch)
tree2fc7030b51f956700741175f7ed5030e6d827d08 /compar.c
parentc65dc8c3b1acc07ae0d2d83012a3f353635d7eb6 (diff)
* include/ruby/ruby.h (rb_intern_const): tiny optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compar.c')
-rw-r--r--compar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compar.c b/compar.c
index b028a256ec..633c5b5309 100644
--- a/compar.c
+++ b/compar.c
@@ -199,6 +199,7 @@ void
Init_Comparable(void)
{
#undef rb_intern
+#define rb_intern(str) rb_intern_const(str)
rb_mComparable = rb_define_module("Comparable");
rb_define_method(rb_mComparable, "==", cmp_equal, 1);