summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 14:56:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 14:56:24 +0000
commitc7f041c707ae9589896448e2c0237e4274a9249e (patch)
tree6f8098942e081ca4ee65f133cedb62487cb5685e
parent16c66c9f9b98f6b17f84069187087954261bd4da (diff)
downloadruby-c7f041c707ae9589896448e2c0237e4274a9249e.tar.gz
ruby-c7f041c707ae9589896448e2c0237e4274a9249e.tar.xz
ruby-c7f041c707ae9589896448e2c0237e4274a9249e.zip
* error.c (name_err_mesg_to_str): inverted condition for result of
inspection. [ruby-dev:22628] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--error.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 19471a55e..23e1b492f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jan 19 23:56:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * 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 <eban@ruby-lang.org>
* sample/exyacc.rb: escape '}' to avoid warning.
diff --git a/error.c b/error.c
index 909e4422a..50ff98f5e 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;