From 7c9a3d19fcacb57463d823d06f579129fa836820 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 Aug 2013 14:48:55 +0000 Subject: parse.y: calculate powers of ten * parse.y (parser_yylex): calculate denominator directly as powers of ten, not parsing string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 05035b7c80..bdb0aaf854 100644 --- a/numeric.c +++ b/numeric.c @@ -2986,6 +2986,12 @@ int_pow(long x, unsigned long y) return LONG2NUM(z); } +VALUE +rb_int_positive_pow(long x, unsigned long y) +{ + return int_pow(x, y); +} + /* * call-seq: * fix ** numeric -> numeric_result -- cgit v1.2.3