ruby-changes:37153
From: nobu <ko1@a...>
Date: Tue, 13 Jan 2015 21:07:20 +0900 (JST)
Subject: [ruby-changes:37153] nobu:r49234 (trunk): compar.c: fix message
nobu 2015-01-13 21:07:04 +0900 (Tue, 13 Jan 2015) New Revision: 49234 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49234 Log: compar.c: fix message * compar.c (rb_cmperr): show float values in the error message always, not only flonum. Modified files: trunk/compar.c Index: compar.c =================================================================== --- compar.c (revision 49233) +++ compar.c (revision 49234) @@ -20,7 +20,7 @@ rb_cmperr(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/compar.c#L20 { VALUE classname; - if (SPECIAL_CONST_P(y)) { + if (SPECIAL_CONST_P(y) || BUILTIN_TYPE(y) == T_FLOAT) { classname = rb_inspect(y); } else { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/