diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-02 14:48:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-02 14:48:55 +0000 |
commit | 7c9a3d19fcacb57463d823d06f579129fa836820 (patch) | |
tree | 1acc384bb22a56911d15fd8b5bc17c9b976b92bb /numeric.c | |
parent | 0eab2b464e6861da0cc55f6dc1c7561e6628c74e (diff) | |
download | ruby-7c9a3d19fcacb57463d823d06f579129fa836820.tar.gz |
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
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |