From 108baac00aed6b4901deccabb77945c60f68d73e Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 19 Jan 2004 14:56:24 +0000 Subject: [PATCH] * error.c (name_err_mesg_to_str): inverted condition for result of inspection. [ruby-dev:22628] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ error.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 19471a55e4..23e1b492f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 19 23:56:20 2004 Nobuyoshi Nakada + + * error.c (name_err_mesg_to_str): inverted condition for result of + inspection. [ruby-dev:22628] + Mon Jan 19 22:24:28 2004 WATANABE Hirofumi * sample/exyacc.rb: escape '}' to avoid warning. diff --git a/error.c b/error.c index 909e4422a7..50ff98f5ec 100644 --- a/error.c +++ b/error.c @@ -720,7 +720,7 @@ name_err_mesg_to_str(obj) break; default: d = rb_protect(rb_inspect, obj, 0); - if (!NIL_P(d) || RSTRING(d)->len > 65) { + if (NIL_P(d) || RSTRING(d)->len > 65) { d = rb_any_to_s(obj); } desc = RSTRING(d)->ptr;