diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-02 22:38:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-02 22:38:44 +0000 |
commit | aef5ac876cc5f6453fbfd1e273a4a27f10ef2555 (patch) | |
tree | 13e1227344cfa142caf24803a0ad28ff4ba8634e /numeric.c | |
parent | fa14633cba67c0b878e5b3125070151682a04643 (diff) | |
download | ruby-aef5ac876cc5f6453fbfd1e273a4a27f10ef2555.tar.gz |
numeric.c: move declaration [ci skip]
* numeric.c (fix_lshift, fix_rshift, flo_truncate): move forward
declaration to the top.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -105,8 +105,11 @@ round(double x) static VALUE fix_uminus(VALUE num); static VALUE fix_mul(VALUE x, VALUE y); +static VALUE fix_lshift(long, unsigned long); +static VALUE fix_rshift(long, unsigned long); static VALUE int_pow(long x, unsigned long y); static VALUE int_cmp(VALUE x, VALUE y); +static VALUE flo_truncate(VALUE num); static ID id_coerce, id_div, id_divmod; #define id_to_i idTo_i @@ -1805,8 +1808,6 @@ rb_int_round(VALUE num, int ndigits) return n; } -static VALUE -flo_truncate(VALUE num); /* * call-seq: @@ -3753,9 +3754,6 @@ fix_xor(VALUE x, VALUE y) return rb_funcall(x, '^', 1, y); } -static VALUE fix_lshift(long, unsigned long); -static VALUE fix_rshift(long, unsigned long); - /* * call-seq: * fix << count -> integer |