summaryrefslogtreecommitdiff
path: root/error.c
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
commit108baac00aed6b4901deccabb77945c60f68d73e (patch)
tree6f8098942e081ca4ee65f133cedb62487cb5685e /error.c
parent939e7877d39ce31135cf04ace96ffaa481b803ff (diff)
* 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
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
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;