зеркало из https://github.com/github/ruby.git
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:
Родитель
d99ac4f829
Коммит
d17fe8a467
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче