1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2004-01-19 14:56:24 +00:00
parent 939e7877d3
commit 108baac00a
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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;