diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-01 17:35:30 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-01 17:35:30 +0000 |
commit | 623be3b0cbddbce19c9aeb6f7e0fff98df1367df (patch) | |
tree | 1949295cbd6126ba568c8b55b5dffb4575499a1a /ext | |
parent | c97f2eedfaa9d5ed82a3008ae35fa95146bbdade (diff) | |
download | ruby-623be3b0cbddbce19c9aeb6f7e0fff98df1367df.tar.gz ruby-623be3b0cbddbce19c9aeb6f7e0fff98df1367df.tar.xz ruby-623be3b0cbddbce19c9aeb6f7e0fff98df1367df.zip |
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: http://svn.ruby-lang.org/repos/ruby/trunk@24730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/json/lib/json/common.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb index 5f6b24477..0df8a8995 100755 --- a/ext/json/lib/json/common.rb +++ b/ext/json/lib/json/common.rb @@ -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 |