summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bigdecimal/lib/bigdecimal/util.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/lib/bigdecimal/util.rb b/ext/bigdecimal/lib/bigdecimal/util.rb
index 90b0cbd0b8e..1f8d6c7a49c 100644
--- a/ext/bigdecimal/lib/bigdecimal/util.rb
+++ b/ext/bigdecimal/lib/bigdecimal/util.rb
@@ -19,13 +19,13 @@
#
class Float < Numeric
def to_d
- BigDecimal::new(selt.to_s)
+ BigDecimal(self.to_s)
end
end
class String
def to_d
- BigDecimal::new(self)
+ BigDecimal(self)
end
end