mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d99ac4f829
commit
d17fe8a467
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 2 02:32:46 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* ext/json: Update to JSON 1.1.9.
|
||||
|
|
|
@ -74,7 +74,7 @@ module JSON
|
|||
end
|
||||
self.create_id = 'json_class'
|
||||
|
||||
NaN = (-1.0) ** 0.5
|
||||
NaN = 0.0/0
|
||||
|
||||
Infinity = 1.0/0
|
||||
|
||||
|
|
Loading…
Reference in a new issue