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:
naruse 2009-09-01 17:35:30 +00:00
Родитель d99ac4f829
Коммит d17fe8a467
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

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