From 04a8e85bc5d305d1c227ca9d3ccc0794e07fafc1 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 14 Aug 2001 08:13:31 +0000 Subject: * range.c (range_step): new method. * string.c (rb_str_cmp): remove needless conditional. * string.c (rb_str_lstrip_bang) `return Qnil' was missing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'array.c') diff --git a/array.c b/array.c index 4ca1dc3c2d..9bfd24041e 100644 --- a/array.c +++ b/array.c @@ -910,7 +910,9 @@ rb_inspecting_p(obj) { VALUE inspect_tbl; - if (!inspect_key) return Qfalse; + if (!inspect_key) { + inspect_key = rb_intern("__inspect_key__"); + } inspect_tbl = rb_thread_local_aref(rb_thread_current(), inspect_key); if (NIL_P(inspect_tbl)) return Qfalse; return rb_ary_includes(inspect_tbl, rb_obj_id(obj)); -- cgit v1.2.3