summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-13 08:42:07 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-12-13 08:42:07 +0900
commite647b16d1d57525f6eda80fac50c6f242f8fb101 (patch)
treeef44783f2e77314f6b4b8068b0c05204bf8bbafa /mrblib
parentad0678110717e1dc87c23d1c9de6e8cd668a9ebb (diff)
downloadmruby-e647b16d1d57525f6eda80fac50c6f242f8fb101.tar.gz
mruby-e647b16d1d57525f6eda80fac50c6f242f8fb101.zip
Should not define `Float` class in `mrblib/00class.rb`; ref #3828
Unless it is defined in `numeric.c`.
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/float.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/float.rb b/mrblib/float.rb
index 6343b9b85..2b86dc1e5 100644
--- a/mrblib/float.rb
+++ b/mrblib/float.rb
@@ -6,4 +6,4 @@ class Float
# mruby special - since mruby integers may be upgraded to floats,
# floats should be compatible to integers.
include Integral
-end
+end if class_defined?("Float")