summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json')
-rwxr-xr-xext/json/lib/json/common.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb
index 5f6b244779..0df8a8995e 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