summaryrefslogtreecommitdiffhomepage
path: root/mrblib/float.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mrblib/float.rb')
-rw-r--r--mrblib/float.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/float.rb b/mrblib/float.rb
index 2b86dc1e5..421b8d851 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 if class_defined?("Float")
+end if Object.const_defined?(:Float)