ruby-changes:12987
From: naruse <ko1@a...>
Date: Wed, 2 Sep 2009 02:36:09 +0900 (JST)
Subject: [ruby-changes:12987] Ruby:r24730 (trunk): NaN is now 0.0/0 because of 1.8/1.9 compat.
naruse 2009-09-02 02:35:30 +0900 (Wed, 02 Sep 2009) New Revision: 24730 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24730 Log: NaN is now 0.0/0 because of 1.8/1.9 compat. * ext/json/lib/json/common.rb (NaN): Change definition of NaN to 0.0/0 for 1.8/1.9 compatibility. Modified files: trunk/ChangeLog trunk/ext/json/lib/json/common.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 24729) +++ ChangeLog (revision 24730) @@ -1,3 +1,8 @@ +Wed Sep 2 02:32:46 2009 NARUSE, Yui <naruse@r...> + + * ext/json/lib/json/common.rb (NaN): Change definition + of NaN to 0.0/0 for 1.8/1.9 compatibility. + Wed Sep 2 01:16:32 2009 NARUSE, Yui <naruse@r...> * ext/json: Update to JSON 1.1.9. Index: ext/json/lib/json/common.rb =================================================================== --- ext/json/lib/json/common.rb (revision 24729) +++ ext/json/lib/json/common.rb (revision 24730) @@ -74,7 +74,7 @@ end self.create_id = 'json_class' - NaN = (-1.0) ** 0.5 + NaN = 0.0/0 Infinity = 1.0/0 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/